From 87655f279c3825ba4e4887bd2f8d25dd4a31dbcb Mon Sep 17 00:00:00 2001 From: Philip Peterson <1326208+philip-peterson@users.noreply.github.com> Date: Fri, 20 Dec 2024 06:57:17 -0500 Subject: [PATCH] try to fix http/https --- nixos/nginx.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/nixos/nginx.nix b/nixos/nginx.nix index eeac851..8caaba8 100644 --- a/nixos/nginx.nix +++ b/nixos/nginx.nix @@ -112,12 +112,26 @@ }; "forge.quinefoundation.com" = { enableACME = true; - forceSSL = false; - addSSL = true; + + listen = [ + { addr = "0.0.0.0"; port = 443; } + { addr = "[::]"; port = 443; } + ]; + locations."/" = { proxyPass = "http://127.0.0.1:3000/"; # pass through to Forgejo }; }; + "forge.quinefoundation.com" = { + listen = [ + { addr = "0.0.0.0"; port = 80; } + { addr = "[::]"; port = 80; } + ]; + + locations."/" = { + proxyPass = "https://forge.quinefoundation.com/"; # pass through to HTTPS + }; + }; }; # Optionally configure additional options