Redirect www.jichan.org to jichan.org, use forceSSL for tegakituesday.com

This commit is contained in:
Elnu 2023-08-06 14:35:10 -07:00
parent c2a6deebf9
commit b416d555d2
2 changed files with 8 additions and 3 deletions

View file

@ -1,5 +1,10 @@
{
services.nginx.virtualHosts."jichan.org" = {
let host = "jichan.org"; in {
services.nginx.virtualHosts."www.${host}" = {
forceSSL = true;
enableACME = true;
globalRedirect = host;
};
services.nginx.virtualHosts."${host}" = {
forceSSL = true;
enableACME = true;
extraConfig = ''

View file

@ -1,6 +1,6 @@
let host = "tegakituesday.com"; in {
services.nginx.virtualHosts."www.${host}" = {
enableSSL = true;
forceSSL = true;
enableACME = true;
globalRedirect = host;
};