Fix so that nginx config is loaded after configuration happens

M	backend/internal/access-list.js
This commit is contained in:
Tim 2024-02-26 10:04:25 +11:00
parent 209c1b3334
commit 0503a6af75

View File

@ -204,7 +204,6 @@ const internalAccessList = {
});
}
})
.then(internalNginx.reload)
.then(() => {
// Add to audit log
return internalAuditLog.add(access, {
@ -227,7 +226,7 @@ const internalAccessList = {
if (row.proxy_host_count) {
return internalNginx.bulkGenerateConfigs('proxy_host', row.proxy_hosts);
}
})
}).then(internalNginx.reload)
.then(() => {
return internalAccessList.maskItems(row);
});