From b416d555d2586c6b3e3ca5bff56fa77058079943 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sun, 6 Aug 2023 14:35:10 -0700 Subject: [PATCH] Redirect www.jichan.org to jichan.org, use forceSSL for tegakituesday.com --- hosts/elnudrop/hosts/jichan.org/default.nix | 9 +++++++-- hosts/elnudrop/hosts/tegakituesday.com/default.nix | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hosts/elnudrop/hosts/jichan.org/default.nix b/hosts/elnudrop/hosts/jichan.org/default.nix index ddba625..627b50e 100644 --- a/hosts/elnudrop/hosts/jichan.org/default.nix +++ b/hosts/elnudrop/hosts/jichan.org/default.nix @@ -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 = '' diff --git a/hosts/elnudrop/hosts/tegakituesday.com/default.nix b/hosts/elnudrop/hosts/tegakituesday.com/default.nix index 272ed02..64ae077 100644 --- a/hosts/elnudrop/hosts/tegakituesday.com/default.nix +++ b/hosts/elnudrop/hosts/tegakituesday.com/default.nix @@ -1,6 +1,6 @@ let host = "tegakituesday.com"; in { services.nginx.virtualHosts."www.${host}" = { - enableSSL = true; + forceSSL = true; enableACME = true; globalRedirect = host; };