update pay function

This commit is contained in:
2025-11-22 09:51:17 +08:00
parent cddf82ce51
commit feb08dc746
17 changed files with 58 additions and 980 deletions

View File

@@ -158,50 +158,6 @@ server {
proxy_send_timeout 60s;
proxy_read_timeout 60s;
}
location /ai-chat {
# 重写路径,去掉 /ai-chat 前缀
rewrite ^/ai-chat(.*)$ $1 break;
proxy_pass http://127.0.0.1:3000;
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;
# 保持 Cookie 传递重要Session 共享)
proxy_set_header Cookie $http_cookie;
proxy_pass_request_headers on;
# WebSocket 支持(如果需要实时功能)
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# 禁用缓冲,支持流式响应
proxy_buffering off;
proxy_cache off;
# 超时设置
proxy_connect_timeout 60s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
}
# Next.js 静态资源
location ~ ^/ai-chat/(_next|__nextjs) {
rewrite ^/ai-chat(.*)$ $1 break;
proxy_pass http://127.0.0.1:3000;
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;
# 静态资源缓存
expires 1y;
add_header Cache-Control "public, immutable";
}
# Elasticsearch API代理价值论坛
location /es-api/ {
proxy_pass http://222.128.1.157:19200/;
@@ -267,7 +223,21 @@ server {
proxy_send_timeout 86400s;
proxy_read_timeout 86400s;
}
# AI Chat 应用 (Next.js) - MCP 集成
location /ai-chat {
proxy_pass http://127.0.0.1:3000/ai-chat;
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_set_header Cookie $http_cookie;
proxy_pass_request_headers on;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_buffering off;
proxy_cache off;
}
# iframe 内部资源代理Bytedesk 聊天窗口的 CSS/JS
location /chat/ {
proxy_pass http://43.143.189.195/chat/;