From 4cc88109049a9e2a77356603233838ebf2219ac2 Mon Sep 17 00:00:00 2001 From: nobletrout Date: Wed, 4 Jun 2025 16:32:19 -0400 Subject: [PATCH] Update integration.md adds some documentation on setup for nginx when using a proxy by hostname instead of IP address. Signed-off-by: nobletrout --- docs/docs/configuration/integration.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docs/configuration/integration.md b/docs/docs/configuration/integration.md index 05d39281..39c49499 100644 --- a/docs/docs/configuration/integration.md +++ b/docs/docs/configuration/integration.md @@ -18,6 +18,8 @@ server { location /oauth2/ { proxy_pass http://127.0.0.1:4180; proxy_set_header Host $host; + # or if you are using a proxy by DNS/Service Mesh and can't rewrite the Host + # proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Auth-Request-Redirect $request_uri; # or, if you are handling multiple domains: @@ -26,6 +28,8 @@ server { location = /oauth2/auth { proxy_pass http://127.0.0.1:4180; proxy_set_header Host $host; + # or if you are using a proxy by DNS/Service Mesh and can't rewrite the Host + # proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Uri $request_uri; # nginx auth_request includes headers but not body