Skip to content

Commit 7e7032c

Browse files
committed
Prevent activating nginx config after editing disabled proxy host
1 parent a21289b commit 7e7032c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/internal/proxy-host.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ const internalProxyHost = {
189189
expand: ['owner', 'certificate', 'access_list.[clients,items]']
190190
})
191191
.then((row) => {
192+
if (!row.enabled) {
193+
// No need to add nginx config if host is disabled
194+
return row;
195+
}
192196
// Configure nginx
193197
return internalNginx.configure(proxyHostModel, 'proxy_host', row)
194198
.then((new_meta) => {

0 commit comments

Comments
 (0)