From a74a03a578ae25745d368872349e8e0ea8580fc8 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Fri, 13 Oct 2023 17:37:26 +0200 Subject: adjust nginx library for authentik --- lib/nginx/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/nginx/default.nix b/lib/nginx/default.nix index 3fdb697..ac356ea 100644 --- a/lib/nginx/default.nix +++ b/lib/nginx/default.nix @@ -9,6 +9,11 @@ proxyWebsockets = true; extraConfig = '' proxy_pass_header Authorization; + + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $host; + proxy_set_header Upgrade $http_upgrade; ''; }; }; @@ -41,7 +46,7 @@ }; locations."/outpost.goauthentik.io" = { - proxyPass = "https://auth.vapor.systems/outpost.goauthentik.io"; + proxyPass = "https://10.10.0.1:9444/outpost.goauthentik.io"; proxyWebsockets = true; extraConfig = '' proxy_ssl_server_name on; -- cgit v1.2.3