Skip to content

Commit c9c53d9

Browse files
authored
Merge pull request NginxProxyManager#903 from ogarai/edit-disabled-host
Prevent activating nginx config after editing disabled proxy host
2 parents d36dbb8 + 7e7032c commit c9c53d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/internal/proxy-host.js

+4
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)