Enhance WebSocket support and update environment configuration
- Added VITE_SOCKET_URL to docker-compose.yml for WebSocket connection. - Updated update-docker-env.sh to handle SSL options for WebSocket URLs. - Modified Dockerfile to include VITE_SOCKET_URL in env-config.js. - Implemented getSocketUrl function in frontend to retrieve WebSocket URL. - Refactored socket configuration to use centralized socket URL from environment settings.
This commit is contained in:
@@ -9,6 +9,7 @@ services:
|
||||
condition: service_started
|
||||
environment:
|
||||
- VITE_API_URL=${VITE_API_URL:-http://backend:3000}
|
||||
- VITE_SOCKET_URL=${VITE_SOCKET_URL:-ws://backend:3000}
|
||||
networks:
|
||||
- worklenz
|
||||
|
||||
|
||||
Reference in New Issue
Block a user