fix: redis URL generated
This commit is contained in:
parent
2a079e3365
commit
26fce85bb0
@ -80,9 +80,9 @@ class General extends Component
|
|||||||
public function getDbUrl() {
|
public function getDbUrl() {
|
||||||
|
|
||||||
if ($this->database->is_public) {
|
if ($this->database->is_public) {
|
||||||
$this->db_url = "redis://{$this->database->redis_password}@{$this->database->destination->server->getIp}:{$this->database->public_port}/0";
|
$this->db_url = "redis://:{$this->database->redis_password}@{$this->database->destination->server->getIp}:{$this->database->public_port}/0";
|
||||||
} else {
|
} else {
|
||||||
$this->db_url = "redis://{$this->database->redis_password}@{$this->database->uuid}:5432/0";
|
$this->db_url = "redis://:{$this->database->redis_password}@{$this->database->uuid}:6379/0";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public function render()
|
public function render()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user