mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-03-14 17:48:14 -04:00
Prevent activating nginx config after editing disabled proxy host
This commit is contained in:
parent
a21289bf11
commit
7e7032c051
@ -189,6 +189,10 @@ const internalProxyHost = {
|
|||||||
expand: ['owner', 'certificate', 'access_list.[clients,items]']
|
expand: ['owner', 'certificate', 'access_list.[clients,items]']
|
||||||
})
|
})
|
||||||
.then((row) => {
|
.then((row) => {
|
||||||
|
if (!row.enabled) {
|
||||||
|
// No need to add nginx config if host is disabled
|
||||||
|
return row;
|
||||||
|
}
|
||||||
// Configure nginx
|
// Configure nginx
|
||||||
return internalNginx.configure(proxyHostModel, 'proxy_host', row)
|
return internalNginx.configure(proxyHostModel, 'proxy_host', row)
|
||||||
.then((new_meta) => {
|
.then((new_meta) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user