- Added upstream objects

- Renamed host templates to nginx templates
- Generate upstream templates
- Better nginx error reporting when reloading
- Use tparse for golang test reporting
This commit is contained in:
Jamie Curnow committed 2023-01-04 15:53:52 +10:00
1 parent b3ae2f4dbb
commit 5e5f0de0e2
82 files changed
+2209 -294

No files matched your search

@@ -0,0 +1,22 @@
package schema
// UpdateHostTemplate is the schema for incoming data validation
func UpdateNginxTemplate() string {
return `
{
"type": "object",
"additionalProperties": false,
"minProperties": 1,
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"template": {
"type": "string",
"minLength": 20
}
}
}
`
}