mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Fix error when updating hosts
This commit is contained in:
parent
64de096565
commit
d2130a24a1
@ -101,9 +101,7 @@ I won't go in to too much detail here but here are the basics for someone new to
|
|||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
- Pass on human readable ssl cert errors to the ui
|
- Pass on human readable ssl cert errors to the ui
|
||||||
- Allow a host to be a redirection to another domain
|
|
||||||
- UI: Allow column sorting on tables
|
- UI: Allow column sorting on tables
|
||||||
- UI: Allow filtering hosts by types
|
- UI: Allow filtering hosts by types
|
||||||
- Advanced option to overwrite the default location block (or regex to do it automatically)
|
- Advanced option to overwrite the default location block (or regex to do it automatically)
|
||||||
- Add nice upstream error pages
|
- Add nice upstream error pages
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ function apiValidator (schema, payload/*, description*/) {
|
|||||||
resolve(payload);
|
resolve(payload);
|
||||||
} else {
|
} else {
|
||||||
let message = ajv.errorsText(validate.errors);
|
let message = ajv.errorsText(validate.errors);
|
||||||
//debug(validate.errors);
|
//console.log(validate.errors);
|
||||||
|
|
||||||
let err = new error.ValidationError(message);
|
let err = new error.ValidationError(message);
|
||||||
err.debug = [validate.errors, payload];
|
err.debug = [validate.errors, payload];
|
||||||
|
@ -146,6 +146,9 @@
|
|||||||
"required": [],
|
"required": [],
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"$ref": "#/definitions/type"
|
||||||
|
},
|
||||||
"hostname": {
|
"hostname": {
|
||||||
"$ref": "#/definitions/hostname"
|
"$ref": "#/definitions/hostname"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user