remove dynamic config
This commit is contained in:
parent
f766600fd8
commit
41d366d27e
@ -48,14 +48,20 @@ class Form extends Component
|
|||||||
}
|
}
|
||||||
$this->validate();
|
$this->validate();
|
||||||
$this->settings->save();
|
$this->settings->save();
|
||||||
if (isset($this->settings->fqdn)) {
|
|
||||||
if (config('app.env') == 'local') {
|
if (config('app.env') == 'local') {
|
||||||
$server = Server::findOrFail(1);
|
$server = Server::findOrFail(1);
|
||||||
$dynamic_config_path = '/data/coolify/proxy/dynamic';
|
$dynamic_config_path = '/data/coolify/proxy/dynamic';
|
||||||
} else {
|
} else {
|
||||||
$server = Server::findOrFail(0);
|
$server = Server::findOrFail(0);
|
||||||
$dynamic_config_path = '/traefik/dynamic';
|
$dynamic_config_path = '/traefik/dynamic';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($this->settings->fqdn)) {
|
||||||
|
remote_process([
|
||||||
|
"rm -f $dynamic_config_path/coolify.yaml",
|
||||||
|
], $server, ActivityTypes::INLINE->value);
|
||||||
|
} else {
|
||||||
$url = Url::fromString($this->settings->fqdn);
|
$url = Url::fromString($this->settings->fqdn);
|
||||||
$host = $url->getHost();
|
$host = $url->getHost();
|
||||||
$schema = $url->getScheme();
|
$schema = $url->getScheme();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user