Adds tests for settings endpoints

and reenables dns cert test
and fixes problems with schema
This commit is contained in:
Jamie Curnow
2024-10-17 08:48:47 +10:00
parent 8497022e41
commit edbed1af90
15 changed files with 160 additions and 40 deletions

View File

@ -181,7 +181,9 @@ const internalNginx = {
* @param {Object} host
* @returns {Promise}
*/
generateConfig: (host_type, host) => {
generateConfig: (host_type, host_row) => {
// Prevent modifying the original object:
let host = JSON.parse(JSON.stringify(host_row));
const nice_host_type = internalNginx.getFileFriendlyHostType(host_type);
if (config.debug()) {