aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2023-10-13 17:37:26 +0200
committerMax Audron <audron@cocaine.farm>2023-10-13 17:37:58 +0200
commita74a03a578ae25745d368872349e8e0ea8580fc8 (patch)
treee0eaec7a16a3adb6273ed85436bbfae1493029df
parentmount media volume on phaenn on boot (diff)
adjust nginx library for authentik
-rw-r--r--lib/nginx/default.nix7
1 files changed, 6 insertions, 1 deletions
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;