summary refs log tree commit diff stats
path: root/system/services/nginx/default.nix
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-04-21 08:00:03 +0200
committersils <sils@sils.li>2023-04-21 08:00:03 +0200
commit50fd32a0cf30ad7b4b4c14a23aa42002e0c55781 (patch)
tree2544aad727a08550a2645fdf3cd01bf97dbea35d /system/services/nginx/default.nix
parentMerge pull request 'server1_build' (#25) from server1_build into server1 (diff)
parentFeat(system/services/nginx): Change to declarative websites (diff)
downloadnixos-server-50fd32a0cf30ad7b4b4c14a23aa42002e0c55781.tar.gz
nixos-server-50fd32a0cf30ad7b4b4c14a23aa42002e0c55781.zip
Merge pull request 'Feat(system/services/nginx): Change to declarative websites' (#29) from server1_webpage into develop
Reviewed-on: https://codeberg.org/vhack.eu/nixos-server/pulls/29
Diffstat (limited to 'system/services/nginx/default.nix')
-rw-r--r--system/services/nginx/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/services/nginx/default.nix b/system/services/nginx/default.nix
index 204783b..9d4d645 100644
--- a/system/services/nginx/default.nix
+++ b/system/services/nginx/default.nix
@@ -1,4 +1,4 @@
-{...}: {
+{websites, ...}: {
   networking.firewall = {
     allowedTCPPorts = [80 443];
   };
@@ -8,7 +8,7 @@
       "vhack.eu" = {
         forceSSL = true;
         enableACME = true;
-        root = "/srv/www/vhack.eu";
+        root = "${websites}/web/vhack.eu";
       };
     };
   };