This commit is contained in:
nobletrout 2025-08-24 13:29:19 +02:00 committed by GitHub
commit 61e4732802
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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