Redirect anythingforafriend.com to https://www.anythingforafriend.com

This commit is contained in:
Eli Ribble 2025-04-18 14:50:55 -07:00
parent 665a97f97e
commit 1da7a107bc
1 changed files with 9 additions and 0 deletions

View File

@ -74,6 +74,15 @@
};
services.nginx = {
enable = true;
virtualHosts."anythingforafriend.com" = {
addSSL = true;
enableACME = true;
locations."/" = {
extraConfig = ''
rewrite ^(.*) https://www.anythingforafriend.com$1 permanent;
'';
};
};
virtualHosts."www.anythingforafriend.com" = {
addSSL = true;
enableACME = true;