Refactor Server.php to remove unnecessary coolify.yaml from cloud hosted servers
This commit is contained in:
parent
6140d0c849
commit
3f9833117e
@ -240,7 +240,7 @@ respond 404
|
|||||||
$dynamic_config_path = $this->proxyPath() . "/dynamic";
|
$dynamic_config_path = $this->proxyPath() . "/dynamic";
|
||||||
if ($this->proxyType() === 'TRAEFIK_V2') {
|
if ($this->proxyType() === 'TRAEFIK_V2') {
|
||||||
$file = "$dynamic_config_path/coolify.yaml";
|
$file = "$dynamic_config_path/coolify.yaml";
|
||||||
if (empty($settings->fqdn) || isCloud()) {
|
if (empty($settings->fqdn) || (isCloud() && $this->id !== 0)) {
|
||||||
instant_remote_process([
|
instant_remote_process([
|
||||||
"rm -f $file",
|
"rm -f $file",
|
||||||
], $this);
|
], $this);
|
||||||
@ -359,7 +359,7 @@ respond 404
|
|||||||
}
|
}
|
||||||
} else if ($this->proxyType() === 'CADDY') {
|
} else if ($this->proxyType() === 'CADDY') {
|
||||||
$file = "$dynamic_config_path/coolify.caddy";
|
$file = "$dynamic_config_path/coolify.caddy";
|
||||||
if (empty($settings->fqdn)) {
|
if (empty($settings->fqdn) || (isCloud() && $this->id !== 0)) {
|
||||||
instant_remote_process([
|
instant_remote_process([
|
||||||
"rm -f $file",
|
"rm -f $file",
|
||||||
], $this);
|
], $this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user