summary refs log tree commit diff stats
path: root/system/services/nginx/default.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-06-25 20:36:37 +0200
committerSoispha <soispha@vhack.eu>2023-06-25 20:52:33 +0200
commit1f6ff65c9a51651a3bf428bf0d304976bc1c3d79 (patch)
tree996b36f163fbadac2ef6c8131c416a37fdc1870a /system/services/nginx/default.nix
parentFix(system/services/git-sync): Use correct systemd options (diff)
downloadnixos-server-1f6ff65c9a51651a3bf428bf0d304976bc1c3d79.tar.gz
nixos-server-1f6ff65c9a51651a3bf428bf0d304976bc1c3d79.zip
Fix(system/services/acme): Leave certs generation to nixos
Diffstat (limited to '')
-rw-r--r--system/services/nginx/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/services/nginx/default.nix b/system/services/nginx/default.nix
index 6753fb0..3eb98d3 100644
--- a/system/services/nginx/default.nix
+++ b/system/services/nginx/default.nix
@@ -2,6 +2,10 @@
   imports = [
     ./hosts.nix
   ];
+  security.acme.acceptTerms = true;
+  security.acme.defaults.email = "admin@vhack.eu";
+  security.acme.defaults.webroot = "/srv/acme/";
+
   networking.firewall = {
     allowedTCPPorts = [80 443];
   };
@@ -9,3 +13,5 @@
     enable = true;
   };
 }
+# vim: ts=2
+