rotehaare flix + updatedns bugfix
This commit is contained in:
parent
7cc3c43da9
commit
b857d39307
@ -55,6 +55,7 @@ in {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
http2 = true;
|
||||
serverAliases = [ "flix.rotehaare.art" ];
|
||||
extraConfig = ''
|
||||
# use a variable to store the upstream proxy
|
||||
# in this example we are using a hostname which is resolved via DNS
|
||||
|
||||
@ -29,10 +29,12 @@
|
||||
update-dns = pkgs.writeScriptBin "update-dns"
|
||||
(builtins.readFile ../../scripts/update-dns.sh);
|
||||
in pkgs.writeScriptBin "update-dns" ''
|
||||
set -a &&
|
||||
source ${config.sops.secrets.dns.path} &&
|
||||
set -a &&
|
||||
${update-dns}/bin/update-dns;
|
||||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p bash curl
|
||||
set -a
|
||||
source ${config.sops.secrets.dns.path}
|
||||
set -a
|
||||
${update-dns}/bin/update-dns
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
@ -21,6 +21,7 @@ in {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
http2 = true;
|
||||
serverAliases = [ "flix.rotehaare.art" ];
|
||||
extraConfig = ''
|
||||
# use a variable to store the upstream proxy
|
||||
# in this example we are using a hostname which is resolved via DNS
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user