diff --git a/deploy.sh b/deploy.sh index f165c41..ad28047 100644 --- a/deploy.sh +++ b/deploy.sh @@ -741,6 +741,13 @@ main() { # If full + nginx, automatically issue certs and enable 443 provision_letsencrypt_cert || true + if [[ "$DEPLOYMENT_MODE" == "full" && "$WITH_NGINX" == "true" ]]; then + log_info "Refreshing edge containers to apply generated HTTPS/SNI config..." + docker compose up -d --force-recreate nginx >/dev/null + if [[ "$WITH_TURN" == "true" ]]; then + docker compose up -d --force-recreate coturn >/dev/null + fi + fi # Ensure TURN is running (when requested with --with-turn) ensure_turn_running || true diff --git a/frontend/health-check.js b/frontend/health-check.js index 280eacc..a2dca9f 100644 --- a/frontend/health-check.js +++ b/frontend/health-check.js @@ -3,7 +3,7 @@ const http = require('http'); const options = { - host: 'localhost', + host: '127.0.0.1', port: process.env.PORT || 3002, path: '/api/health', timeout: 2000, @@ -31,4 +31,4 @@ req.on('timeout', () => { process.exit(1); }); -req.end(); \ No newline at end of file +req.end();