From 889540560643ff90df889919f837a938c12ac896 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 3 Sep 2025 18:02:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8F=90=E4=BA=A4=E4=B8=80=E9=83=A8?= =?UTF-8?q?=E4=BB=BD=E4=BF=AE=E6=94=B9=EF=BC=8C=E4=BB=A5=E6=96=B9=E4=BE=BF?= =?UTF-8?q?=E9=A2=84=E5=8F=91=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend_nuxt/.env.dev.example | 1 + frontend_nuxt/.env.example | 4 +++- frontend_nuxt/.env.production.example | 2 ++ frontend_nuxt/.env.staging.example | 4 ++++ websocket_service/src/main/resources/application.properties | 1 + 5 files changed, 11 insertions(+), 1 deletion(-) 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