diff --git a/nixos/roles/nginx.nix b/nixos/roles/nginx.nix index 8982c2d..0637d8f 100644 --- a/nixos/roles/nginx.nix +++ b/nixos/roles/nginx.nix @@ -36,6 +36,10 @@ in 12222 ]; + systemd.tmpfiles.rules = [ + "d /var/www/home.cyperpunk.de 0755 nginx nginx -" + ]; + security.acme = { acceptTerms = true; defaults.email = "phil.keier@hotmail.com"; @@ -70,6 +74,17 @@ in "calvin.cyperpunk.de" = mkWsProxy 15006; "auth.cyperpunk.de" = mkHttpsProxy 8444; + "home.cyperpunk.de" = { + forceSSL = true; + enableACME = true; + locations."/" = { + root = "/var/www/home.cyperpunk.de"; + extraConfig = '' + try_files $uri $uri/ =404; + ''; + }; + }; + "www.cyperpunk.de" = { forceSSL = true; enableACME = true;