mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-27 17:55:59 -04:00
feat(realtime): replace Soketi image with bundled Reverb
Run Laravel Reverb and the terminal server inside the Coolify container instead of shipping a separate coolify-realtime image. Update compose files, proxy routing, cleanup behavior, and packaging tests for the embedded realtime services.
This commit is contained in:
@@ -838,6 +838,13 @@ 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
|
||||
@@ -846,6 +853,9 @@ 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
|
||||
if [ -n "$ROOT_USERNAME" ] && [ -n "$ROOT_USER_EMAIL" ] && [ -n "$ROOT_USER_PASSWORD" ]; then
|
||||
|
||||
Reference in New Issue
Block a user