diff --git a/frontend_nuxt/.env.dev.example b/frontend_nuxt/.env.dev.example index 3a38feb58..4f6562719 100644 --- a/frontend_nuxt/.env.dev.example +++ b/frontend_nuxt/.env.dev.example @@ -1,5 +1,6 @@ ; 本地部署后端 NUXT_PUBLIC_API_BASE_URL=https://127.0.0.1:8081 +NUXT_PUBLIC_WEBSOCKET_URL=https://127.0.0.1:8082 NUXT_PUBLIC_WEBSITE_BASE_URL=http://localhost:3000 NUXT_PUBLIC_GOOGLE_CLIENT_ID=777830451304-nt8afkkap18gui4f9entcha99unal744.apps.googleusercontent.com diff --git a/frontend_nuxt/.env.example b/frontend_nuxt/.env.example index 000c9e9cd..dadb36387 100644 --- a/frontend_nuxt/.env.example +++ b/frontend_nuxt/.env.example @@ -1,11 +1,13 @@ ; 本地部署后端 ; NUXT_PUBLIC_API_BASE_URL=https://127.0.0.1:8081 -; NUXT_PUBLIC_WEBSOCKET_URL=https://127.0.0.1:8082 ; 预发环境后端 ; NUXT_PUBLIC_API_BASE_URL=https://staging.open-isle.com ; 生产环境后端 NUXT_PUBLIC_API_BASE_URL=https://open-isle.com +; 生产环境ws后端 +NUXT_PUBLIC_WEBSOCKET_URL=https://open-isle.com/websocket + ; 预发环境 ; NUXT_PUBLIC_WEBSITE_BASE_URL=https://staging.open-isle.com ; 正式环境/生产环境 diff --git a/frontend_nuxt/.env.production.example b/frontend_nuxt/.env.production.example index 273a2dff6..9a4b60b7b 100644 --- a/frontend_nuxt/.env.production.example +++ b/frontend_nuxt/.env.production.example @@ -3,6 +3,8 @@ NUXT_PUBLIC_API_BASE_URL=https://open-isle.com ; 正式环境/生产环境 NUXT_PUBLIC_WEBSITE_BASE_URL=https://open-isle.com +; 生产环境ws后端 +NUXT_PUBLIC_WEBSOCKET_URL=https://open-isle.com/websocket NUXT_PUBLIC_GOOGLE_CLIENT_ID=777830451304-nt8afkkap18gui4f9entcha99unal744.apps.googleusercontent.com NUXT_PUBLIC_GITHUB_CLIENT_ID=Ov23liVkO1NPAX5JyWxJ diff --git a/frontend_nuxt/.env.staging.example b/frontend_nuxt/.env.staging.example index 0dcca3f41..488723196 100644 --- a/frontend_nuxt/.env.staging.example +++ b/frontend_nuxt/.env.staging.example @@ -4,6 +4,10 @@ ; 预发环境后端 NUXT_PUBLIC_API_BASE_URL=https://staging.open-isle.com + +; 预发环境ws后端 +NUXT_PUBLIC_WEBSOCKET_URL=https://staging.open-isle.com/websocket + ; 预发环境 NUXT_PUBLIC_WEBSITE_BASE_URL=https://staging.open-isle.com diff --git a/websocket_service/src/main/resources/application.properties b/websocket_service/src/main/resources/application.properties index 7cd788db4..49e1de3bb 100644 --- a/websocket_service/src/main/resources/application.properties +++ b/websocket_service/src/main/resources/application.properties @@ -1,3 +1,4 @@ +server.port=8082 # 服务器配置 spring.application.name=websocket-service