Skip to content

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.

fix(ssl): rename Redis mode to verify-ca as it is not verify-full

peaklabs-dev484fc5140b4e
diff --git a/app/Actions/Database/StartRedis.php b/app/Actions/Database/StartRedis.php
index 11534e87db..fee80be2be 100644
--- a/app/Actions/Database/StartRedis.php
+++ b/app/Actions/Database/StartRedis.php
@@ -302,7 +302,7 @@ class StartRedis
'--tls-ca-cert-file /etc/redis/certs/coolify-ca.crt',
'--tls-auth-clients no',
],
- 'verify-full' => [
+ 'verify-ca' => [
'--tls-port 6380',
'--tls-cert-file /etc/redis/certs/server.crt',
'--tls-key-file /etc/redis/certs/server.key',
diff --git a/app/Livewire/Project/Database/Redis/General.php b/app/Livewire/Project/Database/Redis/General.php
index 32ba0a9ad0..71fbd5887f 100644
--- a/app/Livewire/Project/Database/Redis/General.php
+++ b/app/Livewire/Project/Database/Redis/General.php
@@ -47,7 +47,7 @@ class General extends Component
'redis_username' => 'required',
'redis_password' => 'required',
'database.enable_ssl' => 'boolean',
- 'database.ssl_mode' => 'nullable|string|in:require,verify-full',
+ 'database.ssl_mode' => 'nullable|string|in:require,verify-ca',
];
protected $validationAttributes = [
diff --git a/app/Models/StandaloneRedis.php b/app/Models/StandaloneRedis.php
index b7835b4c9b..2b565aa4ff 100644
--- a/app/Models/StandaloneRedis.php
+++ b/app/Models/StandaloneRedis.php
@@ -226,7 +226,7 @@ class StandaloneRedis extends BaseModel
$port = $this->enable_ssl ? 6380 : 6379;
$url = "{$scheme}://{$username_part}{$this->redis_password}@{$this->uuid}:{$port}/0";
- if ($this->enable_ssl && $this->ssl_mode === 'verify-full') {
+ if ($this->enable_ssl && $this->ssl_mode === 'verify-ca') {
$url .= '?cacert=/etc/ssl/certs/coolify-ca.crt';
}
@@ -245,7 +245,7 @@ class StandaloneRedis extends BaseModel
$scheme = $this->enable_ssl ? 'rediss' : 'redis';
$url = "{$scheme}://{$username_part}{$this->redis_password}@{$this->destination->server->getIp}:{$this->public_port}/0";
- if ($this->enable_ssl && $this->ssl_mode === 'verify-full') {
+ if ($this->enable_ssl && $this->ssl_mode === 'verify-ca') {
$url .= '?cacert=/etc/ssl/certs/coolify-ca.crt';
}
diff --git a/resources/views/livewire/project/database/redis/general.blade.php b/resources/views/livewire/project/database/redis/general.blade.php
index eb9d7af235..28aa8dbba3 100644
--- a/resources/views/livewire/project/database/redis/general.blade.php
+++ b/resources/views/livewire/project/database/redis/general.blade.php
@@ -85,7 +85,7 @@
<x-forms.select id="database.ssl_mode" label="SSL Mode" wire:model.live="database.ssl_mode" instantSave="instantSaveSSL"
helper="Choose the SSL verification mode for Redis connections">
<option value="require">require</option>
- <option value="verify-full">verify-full</option>
+ <option value="verify-ca">verify-ca</option>
</x-forms.select>
@endif
</div>