nightline & ewsp: add www. subdomain
This commit is contained in:
parent
9dd71f8b8c
commit
3b48a937c8
|
@ -36,6 +36,9 @@ in
|
||||||
|
|
||||||
services.nginx.enable = true;
|
services.nginx.enable = true;
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
virtualHosts."www.${domain}" = {
|
||||||
|
locations."/".return = "301 $scheme://${domain}$request_uri";
|
||||||
|
};
|
||||||
virtualHosts."${domain}" = {
|
virtualHosts."${domain}" = {
|
||||||
root = "/srv/web/fsrewsp";
|
root = "/srv/web/fsrewsp";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
|
@ -33,6 +33,9 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
virtualHosts."www.${domain}" = {
|
||||||
|
locations."/".return = "301 $scheme://${domain}$request_uri";
|
||||||
|
};
|
||||||
virtualHosts."${domain}" = {
|
virtualHosts."${domain}" = {
|
||||||
root = "/srv/web/nightline";
|
root = "/srv/web/nightline";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
Loading…
Reference in a new issue