]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - nixops/modules/websites/default.nix
Use acme directory config rather than hardcoding the value
[perso/Immae/Config/Nix.git] / nixops / modules / websites / default.nix
index 5b839af9885c97a1b258133368b1723da1d7c381..432ad3c02466c26619c2df203327490d7b5d25a6 100644 (file)
@@ -179,7 +179,7 @@ in
 
     system.activationScripts = {
       httpd = ''
-        install -d -m 0755 /var/lib/acme/acme-challenge
+        install -d -m 0755 ${config.security.acme.directory}/acme-challenge
         install -d -m 0750 -o wwwrun -g wwwrun /var/lib/php/sessions
         install -d -m 0750 -o wwwrun -g wwwrun /var/lib/php/sessions/adminer
         install -d -m 0750 -o wwwrun -g wwwrun /var/lib/php/tmp/adminer