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 GitHub
parent 64cb9812e0
commit 4d17111233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
add_header Set-Cookie $auth_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,

View File

@ -46,6 +46,10 @@ server {
proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
add_header Set-Cookie $auth_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,