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:
		@ -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,
 | 
				
			||||||
 | 
				
			|||||||
@ -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,
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user