feat caddy dynamic configurations

This commit is contained in:
Andras Bacsai
2024-03-11 17:17:34 +01:00
parent f24063cfea
commit 9bdad6bb67
5 changed files with 159 additions and 132 deletions

View File

@@ -35,7 +35,8 @@ class Init extends Command
$this->call('cleanup:queue');
$this->call('cleanup:stucked-resources');
try {
setup_dynamic_configuration();
$server = Server::find(0)->first();
$server->setupDynamicProxyConfiguration();
} catch (\Throwable $e) {
echo "Could not setup dynamic configuration: {$e->getMessage()}\n";
}