diff --git a/dafoe/services/nginx.nix b/dafoe/services/nginx.nix index 9be086c..45c2da5 100644 --- a/dafoe/services/nginx.nix +++ b/dafoe/services/nginx.nix @@ -8,11 +8,14 @@ recommendedTlsSettings = true; }; - services.nginx.virtualHosts."git.vatthauer.xyz" = { - enableACME = true; - forceSSL = true; - locations."/" = { - proxyPass = "http://localhost:3001/"; + services.nginx.virtualHosts = let tld = "vatthauer.xyz"; in + { + "git.${tld}" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://localhost:3001/"; + }; }; };