diff --git a/frontend_nuxt/.env.staging.example b/frontend_nuxt/.env.staging.example index 488723196..b020df6fb 100644 --- a/frontend_nuxt/.env.staging.example +++ b/frontend_nuxt/.env.staging.example @@ -1,6 +1,5 @@ ; 本地部署后端 ; 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 diff --git a/websocket_service/src/main/resources/application.properties b/websocket_service/src/main/resources/application.properties index 49e1de3bb..6f31f77c7 100644 --- a/websocket_service/src/main/resources/application.properties +++ b/websocket_service/src/main/resources/application.properties @@ -1,4 +1,4 @@ -server.port=8082 +server.port=${SERVER_PORT:8082} # 服务器配置 spring.application.name=websocket-service diff --git a/websocket_service/websocket_service.env.example b/websocket_service/websocket_service.env.example new file mode 100644 index 000000000..9f6304269 --- /dev/null +++ b/websocket_service/websocket_service.env.example @@ -0,0 +1,12 @@ +SERVER_PORT= + +# RabbitMQ 配置 +RABBITMQ_HOST= +RABBITMQ_PORT= +RABBITMQ_USERNAME= +RABBITMQ_PASSWORD= + +# JWT 配置 +JWT_SECRET= + +WEBSITE_URL= \ No newline at end of file