This commit is contained in:
Andras Bacsai
2023-05-15 22:06:08 +02:00
parent 114647810b
commit 3575972c43
4 changed files with 10 additions and 4 deletions

View File

@@ -8,13 +8,13 @@ use Illuminate\Support\Str;
class CheckProxySettingsInSync
{
public function __invoke(Server $server)
public function __invoke(Server $server, bool $reset = false)
{
$proxy_path = config('coolify.proxy_config_path');
$output = instantRemoteProcess([
"cat $proxy_path/docker-compose.yml",
], $server, false);
if (is_null($output)) {
if (is_null($output) || $reset) {
$final_output = Str::of(getProxyConfiguration($server))->trim()->value;
} else {
$final_output = Str::of($output)->trim()->value;