From 25d07828c2b2110ac48e4963aa75d76e245eb298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com> Date: Tue, 23 Jun 2026 21:56:41 +0800 Subject: [PATCH] =?UTF-8?q?D142=20=C2=B7=20Nginx=E5=8A=A0/siyuan/=E5=8F=8D?= =?UTF-8?q?=E4=BB=A3=20=E2=86=92=20=E6=80=9D=E6=BA=90=E7=AC=94=E8=AE=B0Doc?= =?UTF-8?q?ker:6806?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 location /siyuan/ 反代到 127.0.0.1:6806 - WebSocket支持(Upgrade头) - 超时86400s(思源笔记需要长连接) TCS-VERIFY: TCS-VRF-SOV-D139-8A7F2C --- .../operations/BS-SG-001/nginx-guanghubingshuo.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/brain/operations/BS-SG-001/nginx-guanghubingshuo.conf b/brain/operations/BS-SG-001/nginx-guanghubingshuo.conf index 45d9a90..81cbe26 100644 --- a/brain/operations/BS-SG-001/nginx-guanghubingshuo.conf +++ b/brain/operations/BS-SG-001/nginx-guanghubingshuo.conf @@ -186,4 +186,17 @@ server { proxy_cache off; proxy_read_timeout 300s; } + # === D142 新增:思源笔记 · 知识库(Docker :6806)=== + location /siyuan/ { + proxy_pass http://127.0.0.1:6806/; + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_read_timeout 86400; + proxy_send_timeout 300s; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } }