rotehaare flix + updatedns bugfix

This commit is contained in:
Danilo Reyes 2024-08-29 17:57:49 -06:00
parent 7cc3c43da9
commit b857d39307
3 changed files with 8 additions and 4 deletions

View File

@ -55,6 +55,7 @@ in {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
http2 = true; http2 = true;
serverAliases = [ "flix.rotehaare.art" ];
extraConfig = '' extraConfig = ''
# use a variable to store the upstream proxy # use a variable to store the upstream proxy
# in this example we are using a hostname which is resolved via DNS # in this example we are using a hostname which is resolved via DNS

View File

@ -29,10 +29,12 @@
update-dns = pkgs.writeScriptBin "update-dns" update-dns = pkgs.writeScriptBin "update-dns"
(builtins.readFile ../../scripts/update-dns.sh); (builtins.readFile ../../scripts/update-dns.sh);
in pkgs.writeScriptBin "update-dns" '' in pkgs.writeScriptBin "update-dns" ''
set -a && #!/usr/bin/env nix-shell
source ${config.sops.secrets.dns.path} && #! nix-shell -i bash -p bash curl
set -a && set -a
${update-dns}/bin/update-dns; source ${config.sops.secrets.dns.path}
set -a
${update-dns}/bin/update-dns
''; '';
}; };
}; };

View File

@ -21,6 +21,7 @@ in {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
http2 = true; http2 = true;
serverAliases = [ "flix.rotehaare.art" ];
extraConfig = '' extraConfig = ''
# use a variable to store the upstream proxy # use a variable to store the upstream proxy
# in this example we are using a hostname which is resolved via DNS # in this example we are using a hostname which is resolved via DNS