Prevent activating nginx config after editing disabled proxy host

This commit is contained in:
Orko Garai 2021-02-18 05:40:49 +00:00
parent a21289bf11
commit 7e7032c051

View File

@ -189,6 +189,10 @@ const internalProxyHost = {
expand: ['owner', 'certificate', 'access_list.[clients,items]']
})
.then((row) => {
if (!row.enabled) {
// No need to add nginx config if host is disabled
return row;
}
// Configure nginx
return internalNginx.configure(proxyHostModel, 'proxy_host', row)
.then((new_meta) => {