nightline & ewsp: add www. subdomain

This commit is contained in:
Rouven Seifert 2024-04-04 17:12:38 +02:00
parent 9dd71f8b8c
commit 3b48a937c8
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
2 changed files with 6 additions and 0 deletions

View file

@ -36,6 +36,9 @@ in
services.nginx.enable = true;
services.nginx = {
virtualHosts."www.${domain}" = {
locations."/".return = "301 $scheme://${domain}$request_uri";
};
virtualHosts."${domain}" = {
root = "/srv/web/fsrewsp";
extraConfig = ''

View file

@ -33,6 +33,9 @@ in
};
services.nginx = {
virtualHosts."www.${domain}" = {
locations."/".return = "301 $scheme://${domain}$request_uri";
};
virtualHosts."${domain}" = {
root = "/srv/web/nightline";
extraConfig = ''