Skip to content

Commit

Permalink
fix(dockerfile): 限制最大標頭大小
Browse files Browse the repository at this point in the history
原本的Nginx.conf没有定义最大标头大小。若不手动更改,则会出现无法登陆的bug,且Nginx会返回Header too big错误。

Fixed #1604

Co-Authored-By: huangyinhaow <[email protected]>
  • Loading branch information
pan93412 and intzaaa authored May 14, 2022
1 parent 6e1d589 commit f355d5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ RUN echo $'server { \n\
} \n\
\n\
location /api/ { \n\
proxy_buffer_size 128k; \n\
proxy_buffers 16 32k; \n\
proxy_busy_buffers_size 128k; \n\
proxy_set_header Host $host; \n\
proxy_set_header X-Real-IP $remote_addr; \n\
proxy_set_header X-Forwarded-For $remote_addr; \n\
Expand Down

0 comments on commit f355d5d

Please sign in to comment.