From f355d5da5056cf06fefe7de3b39b3eaedb99aa33 Mon Sep 17 00:00:00 2001 From: pan93412 Date: Sat, 14 May 2022 20:07:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(dockerfile):=20=E9=99=90=E5=88=B6=E6=9C=80?= =?UTF-8?q?=E5=A4=A7=E6=A8=99=E9=A0=AD=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原本的Nginx.conf没有定义最大标头大小。若不手动更改,则会出现无法登陆的bug,且Nginx会返回Header too big错误。 Fixed #1604 Co-Authored-By: huangyinhaow <64564727+huangyinhaow@users.noreply.github.com> --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 21db7b8..c493b8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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\