mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 05:19:37 +00:00
Refactor Redis connection URLs in StandaloneDragonfly.php
This commit is contained in:
1 parent
35b07a9c18
commit
bc04ad96b5
1 file changed
+2
-2
@@ -167,9 +167,9 @@ class StandaloneDragonfly extends BaseModel
|
||||
public function get_db_url(bool $useInternal = false): string
|
||||
{
|
||||
if ($this->is_public && !$useInternal) {
|
||||
return "redis://{$this->dragonfly_password}@{$this->destination->server->getIp}:{$this->public_port}/0";
|
||||
return "redis://:{$this->dragonfly_password}@{$this->destination->server->getIp}:{$this->public_port}/0";
|
||||
} else {
|
||||
return "redis://{$this->dragonfly_password}@{$this->uuid}:6379/0";
|
||||
return "redis://:{$this->dragonfly_password}@{$this->uuid}:6379/0";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user