Skip to content

Commit ce49f48

Browse files
committed
fix: proxy conf in dev
1 parent 82daf6c commit ce49f48

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/Actions/Proxy/CheckConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function handle(Server $server, bool $reset = false)
2222
];
2323
$proxy_configuration = instant_remote_process($payload, $server, false);
2424
if ($reset || ! $proxy_configuration || is_null($proxy_configuration)) {
25-
$proxy_configuration = str(generate_default_proxy_configuration($server))->trim()->value;
25+
$proxy_configuration = str(generate_default_proxy_configuration($server))->trim()->value();
2626
}
2727
if (! $proxy_configuration || is_null($proxy_configuration)) {
2828
throw new \Exception('Could not generate proxy configuration');

app/Models/Server.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,12 +448,15 @@ public function proxyPath()
448448
// Should move everything except /caddy and /nginx to /traefik
449449
// The code needs to be modified as well, so maybe it does not worth it
450450
if ($proxyType === ProxyTypes::TRAEFIK->value) {
451-
$proxy_path = $proxy_path;
451+
// Do nothing
452452
} elseif ($proxyType === ProxyTypes::CADDY->value) {
453453
$proxy_path = $proxy_path.'/caddy';
454454
} elseif ($proxyType === ProxyTypes::NGINX->value) {
455455
$proxy_path = $proxy_path.'/nginx';
456456
}
457+
if (isDev()) {
458+
$proxy_path = '/var/lib/docker/volumes/coolify_dev_coolify_data/_data/proxy';
459+
}
457460

458461
return $proxy_path;
459462
}

0 commit comments

Comments
 (0)