guanghulab/server/proxy/config/nginx-brain-proxy-v3-snippet.conf

35 lines
1.6 KiB
Plaintext
Raw Normal View History

# ═══════════════════════════════════════════════
# 🔺 Sovereign: TCS-0002∞ | Root: SYS-GLW-0001
# 📜 Copyright: 国作登字-2026-A-00037559
# ═══════════════════════════════════════════════
# 光湖语言世界 V3 · 大脑服务器 Nginx反向代理配置
# 添加到 /etc/nginx/sites-enabled/ 中的server块内
#
# 测试阶段: /api/proxy-v3/ → 3805 (V2继续运行)
# 切换阶段: 修改 /api/proxy-v2/ 的 proxy_pass 为 3805
# ═══════════════════════════════════════════════
# §4 光湖语言世界V3订阅服务 (测试路径)
# 通过 /api/proxy-v3/ 路径访问
# 实际由 subscription-server-v3.js (port 3805) 处理
# ⚠️ 测试通过后:
# 方法1: 将上方V2的 proxy_pass 改为 http://127.0.0.1:3805/
# 方法2: 或停掉V2进程将V3端口改为3803
location /api/proxy-v3/ {
proxy_pass http://127.0.0.1:3805/;
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_connect_timeout 10s;
proxy_read_timeout 30s;
proxy_send_timeout 30s;
# 订阅服务安全头
add_header X-Content-Type-Options nosniff always;
add_header X-Frame-Options DENY always;
add_header Cache-Control "no-store, no-cache, must-revalidate" always;
}