website/docs: Fix misconfiguration causing POST requests behing Nginx to timeout (#2967)

* Update _nginx_proxy_manager.md

* Update _nginx_standalone.md
This commit is contained in:
TheMythologist 2022-05-26 17:52:57 +08:00 committed by Jens Langhammer
parent f121098957
commit 89028f175a
2 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,10 @@ location /outpost.goauthentik.io {
proxy_set_header X-Original-URL $scheme://$http_host$request_uri; proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
add_header Set-Cookie $auth_cookie; add_header Set-Cookie $auth_cookie;
auth_request_set $auth_cookie $upstream_http_set_cookie; auth_request_set $auth_cookie $upstream_http_set_cookie;
# required for POST requests to work
proxy_pass_request_body off;
proxy_set_header Content-Length "";
} }
# Special location for when the /auth endpoint returns a 401, # Special location for when the /auth endpoint returns a 401,

View File

@ -46,6 +46,10 @@ server {
proxy_set_header X-Original-URL $scheme://$http_host$request_uri; proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
add_header Set-Cookie $auth_cookie; add_header Set-Cookie $auth_cookie;
auth_request_set $auth_cookie $upstream_http_set_cookie; auth_request_set $auth_cookie $upstream_http_set_cookie;
# required for POST requests to work
proxy_pass_request_body off;
proxy_set_header Content-Length "";
} }
# Special location for when the /auth endpoint returns a 401, # Special location for when the /auth endpoint returns a 401,