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

@@ -37,8 +37,10 @@ class StartProxy
"echo 'Proxy started successfully.'"
]);
} else {
$caddfile = "import /dynamic/*.caddy";
$commands = $commands->merge([
"mkdir -p $proxy_path/dynamic && cd $proxy_path",
"echo '$caddfile' > $proxy_path/dynamic/Caddyfile",
"echo 'Creating required Docker Compose file.'",
"echo 'Pulling docker image.'",
'docker compose pull',