SteveLTN / https-portal

A fully automated HTTPS server powered by Nginx, Let's Encrypt and Docker.
MIT License
4.41k stars 295 forks source link

Question - Docker: Basic-Auth and ACLs on containers, not NGINX? #331

Open nunnsby opened 1 year ago

nunnsby commented 1 year ago

I'd like to know if it is possible to have the Basic-Auth and the ACLS created at the container level and NOT the NGINX level?

I find I have to update the ACLs and sometimes the auth settings for various containers, as they may be short lived or temporary, and this always requires changing and reloading the actual NGINX yml file. It would be great if it could auto-add the required configs when an individual container is added/removed. This would allow to run a container only for a specific time, and not have to restart NGINX all the time.

It also breaks NGINX if I added the Auth and a forwarder to the container, in the DOMAIN section, and then the container has been stopped. This requires manually having to remove the DOMAIN item and restarting NGINX.