rotehaare flix + updatedns bugfix
This commit is contained in:
parent
7cc3c43da9
commit
b857d39307
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user