location /api/ { proxy_pass http://deepdata-gateway:8080/api/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /chat { proxy_pass http://deepdata-gateway:8080/chat; 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_intercept_errors on; error_page 500 501 502 503 504 =200 @static_fallback; } location /_next { proxy_pass http://deepdata-gateway:8080/_next; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /deepflow-backend { proxy_pass http://deepdata-gateway:8080/deepflow-backend; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } # Casdoor SSO 前端配置端点(无 /api 前缀,供登录弹窗探测 SSO 是否启用) location = /sso/casdoor/config { proxy_pass http://deepdata-gateway:8080/sso/casdoor/config; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location @static_fallback { root /opt/frontend/statics; try_files $uri $uri/ /index.html; } location / { root /opt/frontend/statics; try_files $uri $uri/ /index.html; }