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 generateEnvValue function to use base64 encoding for certain cases
Andras Bacsaid106d4bd4e6f
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex 9bb2c164a3..6e050a9b4d 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -1598,13 +1598,14 @@ function generateEnvValue(string $command, ?Service $service = null)$generatedValue = Str::password(length: 64, symbols: false);break;case 'BASE64_64':- $generatedValue = Str::random(64);+ $generatedValue = base64_encode(Str::random(64));break;case 'BASE64_128':- $generatedValue = Str::random(128);+ $generatedValue = base64_encode(Str::random(128));break;case 'BASE64':- $generatedValue = Str::random(32);+ case 'BASE64_32':+ $generatedValue = base64_encode(Str::random(32));break;case 'USER':$generatedValue = Str::random(16);