Files
vibemake-admin/deploy/nginx.prod-api-location.conf
T
2026-10-27 14:07:44 +08:00

15 lines
599 B
Plaintext

# 添加到线上前端站点现有的 HTTPS server { ... } 内,与 location / 同级。
# 保留 /admin-api/... 路径;此配置仅代理线上后端。
location ^~ /admin-api/ {
proxy_pass https://vibemake-api.robotquan.com;
proxy_ssl_server_name on;
proxy_set_header Host vibemake-api.robotquan.com;
proxy_set_header Origin "";
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;
client_max_body_size 60m;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
}