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

This commit is contained in:
Pasha Sviderski committed 2025-08-14 19:43:40 +10:00
1 parent 8dd69b46da
commit 4be8339c51
5 files changed
+75 -31

No files matched your search

+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
}