fix(deploy): refresh full-mode edge config and frontend healthcheck
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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();
|
||||
req.end();
|
||||
|
||||
Reference in New Issue
Block a user