This commit is contained in:
Andras Bacsai
2023-12-12 12:13:14 +01:00
parent bbbd605f32
commit b24661b876

View File

@@ -161,7 +161,8 @@ function setup_dynamic_configuration()
{
$dynamic_config_path = get_proxy_path() . "/dynamic";
$settings = InstanceSettings::get();
$server = Server::findOrFail(0);
$server = Server::find(0);
if ($server) {
$file = "$dynamic_config_path/coolify.yaml";
if (empty($settings->fqdn)) {
instant_remote_process([
@@ -268,6 +269,7 @@ function setup_dynamic_configuration()
}
}
}
}
function setup_default_redirect_404(string|null $redirect_url, Server $server)
{
$traefik_dynamic_conf_path = get_proxy_path() . "/dynamic";