chore: load Caddy config via admin API instead of watching Caddyfile change on fs

This commit is contained in:
Pasha Sviderski
2025-09-09 19:10:32 +10:00
parent d25864e52f
commit 5baa8087e5
4 changed files with 172 additions and 107 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ func (cli *Client) NewCaddyDeployment(image, config string, placement api.Placem
spec := api.ServiceSpec{
Container: api.ContainerSpec{
Command: []string{"caddy", "run", "-c", "/config/Caddyfile", "--watch"},
Command: []string{"caddy", "run", "-c", "/config/Caddyfile"},
Env: map[string]string{
"CADDY_ADMIN": "unix//run/caddy/admin.sock",
},