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
Refactor Redis password handling and migration to use environment variables
Andras Bacsai5a54bcdd269b
diff --git a/bootstrap/helpers/databases.php b/bootstrap/helpers/databases.phpindex 65712a24ab..e12910f82b 100644--- a/bootstrap/helpers/databases.php+++ b/bootstrap/helpers/databases.php@@ -49,7 +49,7 @@ function create_standalone_redis($environment_id, $destination_uuid, ?array $oth}$database = new StandaloneRedis;$database->name = generate_database_name('redis');- $database->redis_password = \Illuminate\Support\Str::password(length: 64, symbols: false);+ $redis_password = \Illuminate\Support\Str::password(length: 64, symbols: false);$database->environment_id = $environment_id;$database->destination_id = $destination->id;$database->destination_type = $destination->getMorphClass();@@ -60,7 +60,7 @@ function create_standalone_redis($environment_id, $destination_uuid, ?array $othEnvironmentVariable::create(['key' => 'REDIS_PASSWORD',- 'value' => $database->redis_password,+ 'value' => $redis_password,'standalone_redis_id' => $database->id,'is_shared' => false,]);