mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
31 lines
513 B
Go
31 lines
513 B
Go
package schema
|
|
|
|
// CreateHostTemplate is the schema for incoming data validation
|
|
func CreateHostTemplate() string {
|
|
return `
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"host_type",
|
|
"template"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"host_type": {
|
|
"type": "string",
|
|
"pattern": "^proxy|redirect|dead|stream$"
|
|
},
|
|
"template": {
|
|
"type": "string",
|
|
"minLength": 20
|
|
}
|
|
}
|
|
}
|
|
`
|
|
}
|