diff --git a/docker/orion-visor/nginx.conf b/docker/orion-visor/nginx.conf index 91f5de58..86a73f21 100644 --- a/docker/orion-visor/nginx.conf +++ b/docker/orion-visor/nginx.conf @@ -26,16 +26,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"; diff --git a/docs/quickstart/install.md b/docs/quickstart/install.md index 7b2fef17..a558501f 100644 --- a/docs/quickstart/install.md +++ b/docs/quickstart/install.md @@ -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"; diff --git a/http-client.env.json b/http-client.env.json index a63db22a..9be576b2 100644 --- a/http-client.env.json +++ b/http-client.env.json @@ -1,10 +1,10 @@ { "local": { - "baseUrl": "http://127.0.0.1:9200/orion/api", + "baseUrl": "http://127.0.0.1:9200/orion-visor/api", "token": "Bearer YQJ3IpwJJv5HujIWY6ZTNDgUxXRY6aDt" }, "gateway": { - "baseUrl": "http://127.0.0.1:9200/orion/api", + "baseUrl": "http://127.0.0.1:9200/orion-visor/api", "token": "Bearer YQJ3IpwJJv5HujIWY6ZTNDgUxXRY6aDt" } } diff --git a/orion-visor-launch/src/main/java/com/orion/visor/launch/controller/BootstrapController.java b/orion-visor-launch/src/main/java/com/orion/visor/launch/controller/BootstrapController.java index cdd7ea31..a92f5ba7 100644 --- a/orion-visor-launch/src/main/java/com/orion/visor/launch/controller/BootstrapController.java +++ b/orion-visor-launch/src/main/java/com/orion/visor/launch/controller/BootstrapController.java @@ -23,7 +23,7 @@ public class BootstrapController { @Operation(summary = "健康检测") @GetMapping("/health") public String health() { - return "server ok"; + return "ok"; } } diff --git a/orion-visor-launch/src/main/resources/application.yaml b/orion-visor-launch/src/main/resources/application.yaml index 4559ba0a..3ddbe676 100644 --- a/orion-visor-launch/src/main/resources/application.yaml +++ b/orion-visor-launch/src/main/resources/application.yaml @@ -192,12 +192,12 @@ orion: version: @revision@ api: # 公共 api 前缀 - prefix: /orion/api + prefix: /orion-visor/api # 是否开启跨域 cors: true websocket: # 公共 websocket 前缀 - prefix: /orion/keep-alive + prefix: /orion-visor/keep-alive # 1MB binary-buffer-size: 1048576 # 1MB diff --git a/orion-visor-ui/.env.development b/orion-visor-ui/.env.development index b85c8dd1..36b6b229 100644 --- a/orion-visor-ui/.env.development +++ b/orion-visor-ui/.env.development @@ -1,4 +1,4 @@ -VITE_API_BASE_URL= 'http://127.0.0.1:9200/orion/api' -VITE_WS_BASE_URL= 'ws://127.0.0.1:9200/orion/keep-alive' +VITE_API_BASE_URL= 'http://127.0.0.1:9200/orion-visor/api' +VITE_WS_BASE_URL= 'ws://127.0.0.1:9200/orion-visor/keep-alive' VITE_APP_VERSION= '1.1.0' VITE_SFTP_PREVIEW_MB= 2 diff --git a/orion-visor-ui/.env.production b/orion-visor-ui/.env.production index 641b5e1e..f73c8822 100644 --- a/orion-visor-ui/.env.production +++ b/orion-visor-ui/.env.production @@ -1,4 +1,4 @@ -VITE_API_BASE_URL= '/orion/api' -VITE_WS_BASE_URL= '/orion/keep-alive' +VITE_API_BASE_URL= '/orion-visor/api' +VITE_WS_BASE_URL= '/orion-visor/keep-alive' VITE_APP_VERSION= '1.1.0' VITE_SFTP_PREVIEW_MB= 2