Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
Yes
Are you sure you're not using someone else's docker image?
Yes
Have you searched for similar issues (both open and closed)?
Yes
Describe the bug
Proxy hosts with attached ACLs has strange bahaviour, more exactly ACLs does not work as expected;
I will describe two stirngs of steps, because i think the two has common root cuse
Nginx Proxy Manager Version
v2.11.1
To Reproduce
Steps to reproduce the behavior #1:
create proxy host HOST1
create an ACL
attach ACL to HOST1
disable HOST1
proxy host config is deleted
enable proxy host
proxy host config is created, but it is incorrect, it has a location statement in it like this:
(satisfy statement has the value as it was set ACL)
because of the incorrect location the proxy host does not work - getting error 403;
9.1. open edit Proxy Host and simply save it, without any changes, the location statement is written correctly and proxy host works as expected;
9.2. open edit ACL, and simply save it, without any changes, the location statement is written correctly but poxy host does not work correctly because nginx does not pick up the new config: it must be restarted for example with a killall in container console.
Steps to reproduce the behavior #2:
create proxy host (say HOST1)
create ACL (say ACL1)
attach ACL1 to HOST1
disable proxy host HOST1
proxy host config for HOST1 is deleted
nginx is restarted automatically
6.1 HOST1 is not working in browser (it is OK because we disabled it, right?)
open to edit ACL1 and simply save it whithout any modification
proxy host config for HOST1 is generated
nginx is not restarted (HOST1 still not working in browser - it is OK until now)
open to edit some another proxy host (say HOST2), and save it
nginx will be restarted
HOST1 is working in browser (it is NOT OK!!! HOST1 is disabled - see step 4.) because of the existence of the previously generated config file (see setp 8.)
Expected behavior
The logic behind the actions generating config files for proxy hosts and reloading nginx should be correlated:
if proxy host is modified or edited (and saved) should take in account the attached ACLs too when generating config file;
if ACL is edited and saved it should take in account the status of the proxy hosts to which the ALC is attached, and if any real modifcation happned, nginx should be reloaded;
Screenshots
Operating System
Rocky Linux 9.3
Additional context
browser cache was cleared before single every test step
Checklist
jc21/nginx-proxy-manager:latest
docker image?Describe the bug Proxy hosts with attached ACLs has strange bahaviour, more exactly ACLs does not work as expected; I will describe two stirngs of steps, because i think the two has common root cuse
Nginx Proxy Manager Version v2.11.1
To Reproduce Steps to reproduce the behavior #1:
proxy host config is created, but it is incorrect, it has a location statement in it like this:
(satisfy statement has the value as it was set ACL)
9.1. open edit Proxy Host and simply save it, without any changes, the location statement is written correctly and proxy host works as expected;
9.2. open edit ACL, and simply save it, without any changes, the location statement is written correctly but poxy host does not work correctly because nginx does not pick up the new config: it must be restarted for example with a killall in container console.
Steps to reproduce the behavior #2:
Expected behavior The logic behind the actions generating config files for proxy hosts and reloading nginx should be correlated:
Screenshots
Operating System Rocky Linux 9.3
Additional context browser cache was cleared before single every test step