config: Update server URLs to use HTTPS for secure connections
- Change SERVER_URL from http:// to https:// in docker-compose - Add WebSocket URL conversion logic (https:// → wss://, http:// → ws://) - Resolves Mixed Content security error when client is served over HTTPS - Ensures secure communication between client and server
This commit is contained in:
@@ -30,7 +30,7 @@ services:
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3000
|
||||
- SERVER_URL=http://snatchGameServer.interno.com
|
||||
- SERVER_URL=https://snatchGameServer.interno.com
|
||||
depends_on:
|
||||
- snatchgame-server
|
||||
networks:
|
||||
@@ -53,7 +53,7 @@ services:
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3001
|
||||
- SERVER_URL=http://snatchGameServer.interno.com
|
||||
- SERVER_URL=https://snatchGameServer.interno.com
|
||||
depends_on:
|
||||
- snatchgame-server
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user