chore: generate a minimal Caddyfile with verify handler alongside caddy.json

This commit is contained in:
Pasha Sviderski
2025-08-14 19:43:40 +10:00
parent 8dd69b46da
commit 4be8339c51
5 changed files with 75 additions and 31 deletions
+17
View File
@@ -0,0 +1,17 @@
package caddyconfig
import (
"fmt"
"github.com/psviderski/uncloud/pkg/api"
)
func GenerateCaddyfile(containers []api.ServiceContainer, verifyResponse string) (string, error) {
return fmt.Sprintf(`http:// {
handle %s {
respond "%s" 200
}
log
}
`, VerifyPath, verifyResponse), nil
}