summaryrefslogtreecommitdiff
path: root/hosts/surtr/tls.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-05-30 17:11:23 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-05-30 17:11:23 +0200
commit93b09ca9798e7514fa5937e8163916e826c5e7d5 (patch)
tree16e146640fe9c2b79b9ae5852b97185a46588246 /hosts/surtr/tls.nix
parent3a4f35dc5b9725b970471e2546fe81bc7885e267 (diff)
downloadnixos-93b09ca9798e7514fa5937e8163916e826c5e7d5.tar
nixos-93b09ca9798e7514fa5937e8163916e826c5e7d5.tar.gz
nixos-93b09ca9798e7514fa5937e8163916e826c5e7d5.tar.bz2
nixos-93b09ca9798e7514fa5937e8163916e826c5e7d5.tar.xz
nixos-93b09ca9798e7514fa5937e8163916e826c5e7d5.zip
acme@surtr: ...
Diffstat (limited to 'hosts/surtr/tls.nix')
-rw-r--r--hosts/surtr/tls.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts/surtr/tls.nix b/hosts/surtr/tls.nix
index 259202bb..d087c9f5 100644
--- a/hosts/surtr/tls.nix
+++ b/hosts/surtr/tls.nix
@@ -5,7 +5,7 @@ let
5 knotDNSCredentials = zone: pkgs.writeText "lego-credentials" '' 5 knotDNSCredentials = zone: pkgs.writeText "lego-credentials" ''
6 EXEC_PATH=${knotDNSExec zone}/bin/update-dns.sh 6 EXEC_PATH=${knotDNSExec zone}/bin/update-dns.sh
7 EXEC_PROPAGATION_TIMEOUT=60 7 EXEC_PROPAGATION_TIMEOUT=60
8 EXEC_POLLING_INTERVAL=10 8 EXEC_POLLING_INTERVAL=5
9 ''; 9 '';
10 knotDNSExec = zone: pkgs.writeScriptBin "update-dns.sh" '' 10 knotDNSExec = zone: pkgs.writeScriptBin "update-dns.sh" ''
11 #!${pkgs.zsh}/bin/zsh -xe 11 #!${pkgs.zsh}/bin/zsh -xe
@@ -20,7 +20,7 @@ let
20 20
21 case "''${mode}" in 21 case "''${mode}" in
22 present) 22 present)
23 ${knotCfg.cliWrappers}/bin/knotc zone-set ${zone} "''${owner}" 60 TXT "''${challenge}" 23 ${knotCfg.cliWrappers}/bin/knotc zone-set ${zone} "''${owner}" 30 TXT "''${challenge}"
24 ;; 24 ;;
25 cleanup) 25 cleanup)
26 ${knotCfg.cliWrappers}/bin/knotc zone-unset ${zone} "''${owner}" TXT "''${challenge}" 26 ${knotCfg.cliWrappers}/bin/knotc zone-unset ${zone} "''${owner}" TXT "''${challenge}"