Skip to content

Commit

Permalink
nightline & ewsp: add www. subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
rouven0 committed Apr 4, 2024
1 parent 9dd71f8 commit 3b48a93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/web/fsrewsp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down
3 changes: 3 additions & 0 deletions modules/web/nightline.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ in
};

services.nginx = {
virtualHosts."www.${domain}" = {
locations."/".return = "301 $scheme://${domain}$request_uri";
};
virtualHosts."${domain}" = {
root = "/srv/web/nightline";
extraConfig = ''
Expand Down

0 comments on commit 3b48a93

Please sign in to comment.