fix(reverb): separate public Soketi port from internal Reverb port

Use SOKETI_PORT for Docker host bindings, keep Reverb on port 6001 internally, and stop install/upgrade scripts from overwriting public websocket port overrides.
This commit is contained in:
Andras Bacsai
2026-09-21 21:46:26 +02:00
parent 67dd34bce7
commit 3ce4209a2f
11 changed files with 37 additions and 53 deletions
-9
View File
@@ -833,13 +833,6 @@ update_env_var() {
fi
}
normalize_pusher_port() {
if grep -q "^PUSHER_PORT=8080$" "$ENV_FILE"; then
sed -i "s|^PUSHER_PORT=8080$|PUSHER_PORT=6001|" "$ENV_FILE"
echo " - Updated PUSHER_PORT from app HTTP port 8080 to Reverb port 6001"
fi
}
update_env_var "APP_ID" "$(openssl rand -hex 16)"
update_env_var "APP_KEY" "base64:$(openssl rand -base64 32)"
# update_env_var "DB_USERNAME" "$(openssl rand -hex 16)" # Causes issues: database "random-user" does not exist
@@ -848,8 +841,6 @@ update_env_var "REDIS_PASSWORD" "$(openssl rand -base64 32)"
update_env_var "PUSHER_APP_ID" "$(openssl rand -hex 32)"
update_env_var "PUSHER_APP_KEY" "$(openssl rand -hex 32)"
update_env_var "PUSHER_APP_SECRET" "$(openssl rand -hex 32)"
update_env_var "PUSHER_PORT" "6001"
normalize_pusher_port
update_env_var "PUSHER_BACKEND_PORT" "6001"
# Add default root user credentials from environment variables
-9
View File
@@ -133,13 +133,6 @@ update_env_var() {
fi
}
normalize_pusher_port() {
if grep -q "^PUSHER_PORT=8080$" "$ENV_FILE"; then
sed -i "s|^PUSHER_PORT=8080$|PUSHER_PORT=6001|" "$ENV_FILE"
log "Updated PUSHER_PORT from app HTTP port 8080 to Reverb port 6001"
fi
}
set_env_var() {
local key="$1"
local value="$2"
@@ -158,8 +151,6 @@ set_env_var "REGISTRY_URL" "$REGISTRY_URL"
update_env_var "PUSHER_APP_ID" "$(openssl rand -hex 32)"
update_env_var "PUSHER_APP_KEY" "$(openssl rand -hex 32)"
update_env_var "PUSHER_APP_SECRET" "$(openssl rand -hex 32)"
update_env_var "PUSHER_PORT" "6001"
normalize_pusher_port
update_env_var "PUSHER_BACKEND_PORT" "6001"
log "Environment variables check complete"
echo " Done."