fix(infra): 网关 nginx 添加 snapshot-api 代理 + admin-web 配置 SNAPSHOT_SERVICE_URL
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
30f1355bb4
commit
de361e24f6
|
|
@ -65,6 +65,19 @@ server {
|
|||
client_max_body_size 500M;
|
||||
|
||||
# 反向代理到 Kong API Gateway
|
||||
|
||||
# Snapshot Service 代理 (admin-web Next.js rewrites 使用)
|
||||
location /snapshot-api/ {
|
||||
proxy_pass http://192.168.1.111:3099/;
|
||||
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 30s;
|
||||
proxy_send_timeout 300s;
|
||||
proxy_read_timeout 300s;
|
||||
}
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8000;
|
||||
proxy_http_version 1.1;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ services:
|
|||
- TZ=Asia/Shanghai
|
||||
- NODE_ENV=production
|
||||
- NEXT_TELEMETRY_DISABLED=1
|
||||
- SNAPSHOT_SERVICE_URL=https://rwaapi.szaiai.com/snapshot-api
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
|
||||
interval: 30s
|
||||
|
|
|
|||
Loading…
Reference in New Issue