Redirect anythingforafriend.com to https://www.anythingforafriend.com
This commit is contained in:
parent
665a97f97e
commit
1da7a107bc
|
@ -74,6 +74,15 @@
|
||||||
};
|
};
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
virtualHosts."anythingforafriend.com" = {
|
||||||
|
addSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
extraConfig = ''
|
||||||
|
rewrite ^(.*) https://www.anythingforafriend.com$1 permanent;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
virtualHosts."www.anythingforafriend.com" = {
|
virtualHosts."www.anythingforafriend.com" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
Loading…
Reference in New Issue