From 05d5d9be2cf0f34dc4505661db68a069a9935933 Mon Sep 17 00:00:00 2001 From: qxy <563660345@qq.com> Date: Thu, 22 May 2025 09:49:27 +0000 Subject: [PATCH] =?UTF-8?q?!683=20update=20=E4=BC=98=E5=8C=96=20nginx?= =?UTF-8?q?=E4=BB=A3=E7=90=86snail-job=20websocket=E5=8F=82=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=20=E8=A7=A3=E5=86=B3=E9=83=A8=E7=BD=B2=E5=88=B0?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=90=8E=EF=BC=8C=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=BC=9A=E6=98=BE=E7=A4=BAws=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E5=A4=B1=E8=B4=A5=20*=20update=20snail-job=20websocke?= =?UTF-8?q?t=E9=85=8D=E7=BD=AE=EF=BC=8C=20=E8=A7=A3=E5=86=B3=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E5=88=B0=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E6=97=A5=E5=BF=97=E4=BC=9A=E6=98=BE=E7=A4=BA?= =?UTF-8?q?ws=E8=BF=9E=E6=8E=A5=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/docker/nginx/conf/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/docker/nginx/conf/nginx.conf b/script/docker/nginx/conf/nginx.conf index 22b074f1d..4b9b179ed 100644 --- a/script/docker/nginx/conf/nginx.conf +++ b/script/docker/nginx/conf/nginx.conf @@ -106,6 +106,12 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # sse 与 websocket参数 + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_buffering off; + proxy_cache off; proxy_pass http://snailjob-server/snail-job/; }