diff --git a/lib/default.nix b/lib/default.nix index d4955c6..53a6505 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -69,7 +69,7 @@ in mkVPNSubdomain = name: port: { luj.nginx.enable = true; - services.nginx.virtualHosts."${name}.luj.home" = { + services.nginx.virtualHosts."${name}.luj" = { sslCertificate = "/etc/nginx/certs/subdomains/cert.pem"; sslCertificateKey = "/etc/nginx/certs/subdomains/key.pem"; forceSSL = true; diff --git a/modules/homer/default.nix b/modules/homer/default.nix index 3e0a6b1..9aae4b6 100644 --- a/modules/homer/default.nix +++ b/modules/homer/default.nix @@ -12,9 +12,9 @@ in { luj.nginx.enable = true; - services.nginx.virtualHosts."luj.home" = { - sslCertificate = "/etc/nginx/certs/home/cert.pem"; - sslCertificateKey = "/etc/nginx/certs/home/key.pem"; + services.nginx.virtualHosts."home.luj" = { + sslCertificate = "/etc/nginx/certs/subdomains/cert.pem"; + sslCertificateKey = "/etc/nginx/certs/subdomains/key.pem"; forceSSL = true; root = "/srv/homer/"; };