mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-22 16:14:22 +02:00
Add dynamic proxy configuration setup in StartProxy.php and update proxyPath() in Server.php
This commit is contained in:
parent
1490828069
commit
52120e7a38
@ -66,6 +66,8 @@ public function handle(Server $server, bool $async = true): string|Activity
|
|||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
ray($e);
|
ray($e);
|
||||||
throw $e;
|
throw $e;
|
||||||
|
} finally {
|
||||||
|
$server->setupDynamicProxyConfiguration();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -279,6 +279,9 @@ public function proxyPath()
|
|||||||
$base_path = config('coolify.base_config_path');
|
$base_path = config('coolify.base_config_path');
|
||||||
$proxyType = $this->proxyType();
|
$proxyType = $this->proxyType();
|
||||||
$proxy_path = "$base_path/proxy";
|
$proxy_path = "$base_path/proxy";
|
||||||
|
// TODO: should use /traefik for already exisiting configurations?
|
||||||
|
// Should move everything except /caddy and /nginx to /traefik
|
||||||
|
// The code needs to be modified as well, so maybe it does not worth it
|
||||||
if ($proxyType === ProxyTypes::TRAEFIK_V2->value) {
|
if ($proxyType === ProxyTypes::TRAEFIK_V2->value) {
|
||||||
$proxy_path = $proxy_path;
|
$proxy_path = $proxy_path;
|
||||||
} else if ($proxyType === ProxyTypes::CADDY->value) {
|
} else if ($proxyType === ProxyTypes::CADDY->value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user