🔧 修改 api 前缀.

This commit is contained in:
lijiahang
2024-05-16 13:53:03 +08:00
parent 9a7437e8db
commit 89d9cd4c25
7 changed files with 17 additions and 17 deletions

View File

@@ -87,16 +87,16 @@ server {
try_files $uri $uri/ /index.html;
}
location /orion/api {
proxy_pass http://localhost:9200/orion/api;
location /orion-visor/api {
proxy_pass http://localhost:9200/orion-visor/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;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /orion/keep-alive {
proxy_pass http://localhost:9200/orion/keep-alive;
location /orion-visor/keep-alive {
proxy_pass http://localhost:9200/orion-visor/keep-alive;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";