-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
- 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
Describe the bug
When you defined a proxy host for some container and then stop the container, nginx proxy manager can not restart anymore. Or said container is not on auto-start for bootup, npm also cant start. Leaving access to your containers off.
Nginx Proxy Manager Version
2.9.19 5920b0c
To Reproduce
Steps to reproduce the behavior:
Setup npm
Define a bunch of other containers with web stuff
Setup proxy_hosts for them.
Now shutdown one of the web stuff containers, but not remove their proxy_host.
Restart npm, kaboom
Expected behavior
Detect it breaks, remove the proxy host config from container, possibly switch proxy_host to disabled. Neds parsing of nginx error.log, match for "host not found", the line contains the file that makes nginx refuses to work.
2023/01/05 12:15:28 [emerg] 7507#7507: host not found in upstream "HOSTNAME" in /data/nginx/proxy_host/5.conf:66