Merge pull request #5807 from vgoer/changes-not-taking-effect

fix: Changes not taking effect
This commit is contained in:
jc21
2026-08-28 07:51:55 +10:00
committed by GitHub
+6 -2
View File
@@ -168,8 +168,12 @@ const internalDeadHost = {
});
// Configure nginx
const newMeta = await internalNginx.configure(deadHostModel, "dead_host", row);
row.meta = newMeta;
if (!thisRow.enabled) {
// No need to add nginx config if host is disabled
return _.omit(internalHost.cleanRowCertificateMeta(thisRow), omissions());
}
const newMeta = await internalNginx.configure(deadHostModel, "dead_host", thisRow);
thisRow.meta = newMeta;
return _.omit(internalHost.cleanRowCertificateMeta(thisRow), omissions());
},