-
-
Notifications
You must be signed in to change notification settings - Fork 418
Description
Idea
Please allow for a way for us to disable SECURE_CONNECTION while using password.
Add a new env called something like "SECURE_REVERSE_PROXY" and only when this value is set to 1 then it will allow override of the condition that does not allow running the service with SECURE_CONNECTION being disable and password protection active.
This way, we have both the protection and warning to not allow people to run password unprotected, yet allow for people who are stuck with some reverse proxy problem like me.
My situation yesterday:
I'm using Coolify Panel and there was a easy 1 click install of this project which I liked a lot and worked instantly, until I restarted with new env to make it secure and have password protection, then it stop correctly linking to my address and would not open, after wasting some times I realize it's because Coolify using Traefik which do the securing process itself and send us to http, but the SECURE_CONNECTION force http, so it having mismatch problem.
I spend like 2 hours trying try different combinations or solutions, but the only working combination is to disable SECURE_CONNECTION but when I do that, I can't run password protection or the service won't be allowed to run.
There was a solution of adding label to the composer file but it would not work when I added it to the compose file for this docker, It's possible I have to add it to compose file for the traefik itself, but that would mean editing the traefik setting and restarting it which I never did since I started using coolify and I already run some production site on this host with thousands of users. So I don't want to risk it.
In the end I simply gave up after hours of wasted time and went to sleep.
All of this could have been solved by a simple option to override that forced SECURE_CONNECTION to be enabled and I would have a working firefox in only 10min.
I searched through the issues, there is multiple people with problem like me, not only on traefik but seems to be on some other reverse proxy as well, so I believe this feature will help many.
Thanks.