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:
@@ -51,7 +51,7 @@ app.get('/health', (req, res) => {
|
||||
// API endpoint to get environment config for client
|
||||
app.get('/api/config', (req, res) => {
|
||||
res.json({
|
||||
serverUrl: process.env.SERVER_URL,
|
||||
serverUrl: process.env.PUBLIC_SERVER_URL || process.env.SERVER_URL,
|
||||
environment: ENV
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user