mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 05:42:07 +08:00
fix(dockerfile): 限制最大標頭大小
原本的Nginx.conf没有定义最大标头大小。若不手动更改,则会出现无法登陆的bug,且Nginx会返回Header too big错误。 Fixed #1604 Co-Authored-By: huangyinhaow <64564727+huangyinhaow@users.noreply.github.com>
This commit is contained in:
parent
6e1d58964e
commit
f355d5da50
|
@ -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\
|
||||
|
|
Loading…
Reference in New Issue
Block a user