From b9b282fde861f8db1f9b8ed716623f220328d44a Mon Sep 17 00:00:00 2001 From: Philip Peterson Date: Tue, 5 May 2026 01:39:13 -0800 Subject: [PATCH] add www.philippeterson --- nixos/nginx.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nixos/nginx.nix b/nixos/nginx.nix index 4a7b39c..92c44f2 100644 --- a/nixos/nginx.nix +++ b/nixos/nginx.nix @@ -48,6 +48,18 @@ }; }; + "www.philippeterson.com" = { + enableACME = true; + forceSSL = false; + addSSL = true; + + locations."/" = { + extraConfig = '' + return 301 https://philippeterson.com$request_uri; + ''; + }; + }; + "philippeterson.com" = { enableACME = true; # Enable Let's Encrypt certificate for HTTPS forceSSL = false; # Redirect HTTP to HTTPS?