mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-19 10:36:26 +00:00
Moved v3 code from NginxProxyManager/nginx-proxy-manager-3 to NginxProxyManager/nginx-proxy-manager
This commit is contained in:
21
backend/internal/api/schema/update_certificate_authority.go
Normal file
21
backend/internal/api/schema/update_certificate_authority.go
Normal file
@ -0,0 +1,21 @@
|
||||
package schema
|
||||
|
||||
import "fmt"
|
||||
|
||||
// UpdateCertificateAuthority is the schema for incoming data validation
|
||||
func UpdateCertificateAuthority() string {
|
||||
return fmt.Sprintf(`
|
||||
{
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"minProperties": 1,
|
||||
"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)
|
||||
}
|
Reference in New Issue
Block a user