An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: handle redis_password in API database creation
Andras Bacsai53d0cc6839b1
diff --git a/bootstrap/helpers/databases.php b/bootstrap/helpers/databases.phpindex aa7be3236d..5df36db336 100644--- a/bootstrap/helpers/databases.php+++ b/bootstrap/helpers/databases.php@@ -41,7 +41,13 @@ function create_standalone_redis($environment_id, $destination_uuid, ?array $oth$database = new StandaloneRedis;$database->uuid = (new Cuid2);$database->name = 'redis-database-'.$database->uuid;+$redis_password = \Illuminate\Support\Str::password(length: 64, symbols: false);+ if ($otherData && isset($otherData['redis_password'])) {+ $redis_password = $otherData['redis_password'];+ unset($otherData['redis_password']);+ }+$database->environment_id = $environment_id;$database->destination_id = $destination->id;$database->destination_type = $destination->getMorphClass();