fix: 修复登录令牌和nginx中/test_api_connection接口

This commit is contained in:
CaasianVale
2025-03-08 03:09:35 +08:00
parent d545c94d66
commit 2dd8b7ded8
6 changed files with 190 additions and 48 deletions

View File

@@ -72,6 +72,15 @@ server {
proxy_read_timeout 300s;
}
location /test_api_connection {
proxy_pass http://backend:8888/test_api_connection;
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_cache_bypass $http_upgrade;
}
# 所有其他路由返回index.htmlSPA应用需要
location / {
try_files $uri $uri/ /index.html;