You've already forked nginx-proxy-manager
							
							
				mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-02 16:53:15 +03:00 
			
		
		
		
	Reload nginx after access list change. Fixes #1328
This commit is contained in:
		@@ -118,7 +118,6 @@ const internalAccessList = {
 | 
				
			|||||||
					// Sanity check that something crazy hasn't happened
 | 
										// Sanity check that something crazy hasn't happened
 | 
				
			||||||
					throw new error.InternalValidationError('Access List could not be updated, IDs do not match: ' + row.id + ' !== ' + data.id);
 | 
										throw new error.InternalValidationError('Access List could not be updated, IDs do not match: ' + row.id + ' !== ' + data.id);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
					 | 
				
			||||||
			})
 | 
								})
 | 
				
			||||||
			.then(() => {
 | 
								.then(() => {
 | 
				
			||||||
				// patch name if specified
 | 
									// patch name if specified
 | 
				
			||||||
@@ -205,6 +204,7 @@ const internalAccessList = {
 | 
				
			|||||||
						});
 | 
											});
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			})
 | 
								})
 | 
				
			||||||
 | 
								.then(internalNginx.reload)
 | 
				
			||||||
			.then(() => {
 | 
								.then(() => {
 | 
				
			||||||
				// Add to audit log
 | 
									// Add to audit log
 | 
				
			||||||
				return internalAuditLog.add(access, {
 | 
									return internalAuditLog.add(access, {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user