mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
18 lines
292 B
Go
18 lines
292 B
Go
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
|
|
}
|