config: Update server URLs to use HTTPS for secure connections
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 10s

- 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:
2025-07-05 16:20:33 -06:00
parent 067859e458
commit 660bc3455e
2 changed files with 10 additions and 3 deletions

View File

@@ -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: