From 18b3067e89f998e7d248b292beb8d2721a6ca303 Mon Sep 17 00:00:00 2001 From: nyxerinys Date: Thu, 9 Jul 2026 15:39:44 -0500 Subject: [PATCH] add proxy stuff for authentik --- modules/nginx.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/nginx.nix b/modules/nginx.nix index 00ff616..ba1ceab 100644 --- a/modules/nginx.nix +++ b/modules/nginx.nix @@ -68,6 +68,14 @@ locations."/" = { proxyPass = "http://authentik"; proxyWebsockets = true; + extraConfig = '' + proxy_http_version 1.1; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $http_host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade_keepalive; + ''; }; }; "git.nyxerinys.dev" = {