fix: proxy fixes
This commit is contained in:
@@ -96,6 +96,8 @@ function connectProxyToNetworks(Server $server)
|
||||
"echo 'Connecting coolify-proxy to $network network...'",
|
||||
"docker network ls --format '{{.Name}}' | grep '^$network$' >/dev/null || docker network create --driver overlay --attachable $network >/dev/null",
|
||||
"docker network connect $network coolify-proxy >/dev/null 2>&1 || true",
|
||||
"echo 'Successfully connected coolify-proxy to $network network.'",
|
||||
"echo 'Proxy started and configured successfully!'",
|
||||
];
|
||||
});
|
||||
} else {
|
||||
@@ -104,6 +106,8 @@ function connectProxyToNetworks(Server $server)
|
||||
"echo 'Connecting coolify-proxy to $network network...'",
|
||||
"docker network ls --format '{{.Name}}' | grep '^$network$' >/dev/null || docker network create --attachable $network >/dev/null",
|
||||
"docker network connect $network coolify-proxy >/dev/null 2>&1 || true",
|
||||
"echo 'Successfully connected coolify-proxy to $network network.'",
|
||||
"echo 'Proxy started and configured successfully!'",
|
||||
];
|
||||
});
|
||||
}
|
||||
@@ -217,7 +221,6 @@ function generate_default_proxy_configuration(Server $server)
|
||||
}
|
||||
} elseif ($proxy_type === 'CADDY') {
|
||||
$config = [
|
||||
'version' => '3.8',
|
||||
'networks' => $array_of_networks->toArray(),
|
||||
'services' => [
|
||||
'caddy' => [
|
||||
@@ -236,12 +239,9 @@ function generate_default_proxy_configuration(Server $server)
|
||||
'80:80',
|
||||
'443:443',
|
||||
],
|
||||
// "healthcheck" => [
|
||||
// "test" => "wget -qO- http://localhost:80|| exit 1",
|
||||
// "interval" => "4s",
|
||||
// "timeout" => "2s",
|
||||
// "retries" => 5,
|
||||
// ],
|
||||
'labels' => [
|
||||
'coolify.managed=true',
|
||||
],
|
||||
'volumes' => [
|
||||
'/var/run/docker.sock:/var/run/docker.sock:ro',
|
||||
"{$proxy_path}/dynamic:/dynamic",
|
||||
|
||||
Reference in New Issue
Block a user