fix: Separate internal and external server URLs for SSL compatibility
- Add PUBLIC_SERVER_URL environment variable for client-side connections - Update /api/config endpoints to return public HTTPS URLs for frontend - Keep internal HTTP URLs for server-to-server communication - Resolves SSL certificate verification issues in admin service - Maintains secure WSS/HTTPS connections for clients
This commit is contained in:
@@ -30,7 +30,8 @@ services:
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3000
|
||||
- SERVER_URL=https://snatchGameServer.interno.com
|
||||
- SERVER_URL=http://snatchgame-server:2567
|
||||
- PUBLIC_SERVER_URL=https://snatchGameServer.interno.com
|
||||
depends_on:
|
||||
- snatchgame-server
|
||||
networks:
|
||||
@@ -53,7 +54,8 @@ services:
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3001
|
||||
- SERVER_URL=https://snatchGameServer.interno.com
|
||||
- SERVER_URL=http://snatchgame-server:2567
|
||||
- PUBLIC_SERVER_URL=https://snatchGameServer.interno.com
|
||||
depends_on:
|
||||
- snatchgame-server
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user