mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-28 19:40:28 +00:00
24 lines
453 B
Go
24 lines
453 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
|
|
}
|
|
}
|
|
`, stringMinMax(1, 100), stringMinMax(2, 255), intMinOne)
|
|
}
|