mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-23 13:18:14 -05:00
26 lines
538 B
Go
26 lines
538 B
Go
package schema
|
|
|
|
import "fmt"
|
|
|
|
// CreateCertificateAuthority is the schema for incoming data validation
|
|
func CreateCertificateAuthority() string {
|
|
return fmt.Sprintf(`
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"acmesh_server",
|
|
"max_domains"
|
|
],
|
|
"properties": {
|
|
"name": %s,
|
|
"acmesh_server": %s,
|
|
"max_domains": %s,
|
|
"ca_bundle": %s,
|
|
"is_wildcard_supported": %s
|
|
}
|
|
}
|
|
`, stringMinMax(1, 100), stringMinMax(2, 255), intMinOne, stringMinMax(2, 255), boolean)
|
|
}
|