Skip to content

Commit 82477a1

Browse files
committed
fix: don't forward body to auth server in nginx
1 parent fa43b51 commit 82477a1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/content/docs/docs/guides/nginx-proxy-manager.mdx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ location /tinyauth {
9898
# Pass request to Tinyauth, do not use the Tinyauth domain here, use the internal Docker network name and port or the IP and port of the Tinyauth instance
9999
proxy_pass http://tinyauth:3000/api/auth/nginx;
100100

101+
# Don't forward the request body to the auth subrequest
102+
proxy_pass_request_body off;
103+
proxy_set_header Content-Length "";
104+
101105
# Pass the request headers
102106
proxy_set_header x-forwarded-for $remote_addr;
103107
proxy_set_header x-real-ip $remote_addr;

0 commit comments

Comments
 (0)