From c6fa3d00185b309fb54b2e06fe46cb4c184f63e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=92?= Date: Wed, 5 Nov 2025 23:33:04 +0800 Subject: [PATCH] 1 --- nginx-https.conf | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/nginx-https.conf b/nginx-https.conf index 3ba7ea4..322595f 100644 --- a/nginx-https.conf +++ b/nginx-https.conf @@ -77,10 +77,40 @@ server { proxy_read_timeout 600s; # 请求缓冲设置(对大文件上传有用) - proxy_request_buffering on;1 + proxy_request_buffering on; client_max_body_size 100M; } + # 腾讯文档OAuth回调接口(必须放在 /dev-api/ 之后,location / 之前) + location /tendoc-callback { + proxy_pass http://127.0.0.1:30313/tendoc-callback; + 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_set_header X-Forwarded-Host $server_name; + } + + # jarvis相关API代理(包括腾讯文档的其他接口) + location /jarvis/ { + proxy_pass http://127.0.0.1:30313/jarvis/; + 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_set_header X-Forwarded-Host $server_name; + + # HTTP版本和WebSocket支持 + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + + # 超时设置 + proxy_connect_timeout 600s; + proxy_send_timeout 600s; + proxy_read_timeout 600s; + } + # Druid监控代理(如果需要) location /druid/ {