-
-
Notifications
You must be signed in to change notification settings - Fork 341
[Bug] Usage of SECURE_CONNECTION with a reverse proxy leads to 307 infinite redirect #264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
的确有这个问题 |
The reverse proxy exposes valid certificate to the user. This is not related to the connection used between the reverse proxy and the container, where a self-signed certificate can be used without problem.
Reverse proxy with nginx works without issue, so I guess there is a configuration issue with Traefik. I'm not an expert with this reverse proxy, but can ou try to add the following label:
|
Using
made the server reachable again but I still get an Internal server error as your certificate is not valid. Just ignoring the certificate validity is not really an option for me. |
Why ? Web authentication without a secure connection is not a good idea, because we don't want to pass credentials in clear over the network. |
I still think in a scenario I am in it is fine and you should provide a way, for example a variable to allow it.
Ignoring the certificate validity is not an option as traefik does not provide an easy way to do it, there only seems to be a global setting that I don't want to activate for obvious reasons. |
According to the following link, you can create a https://community.traefik.io/t/https-reverse-proxy-to-https-service-do-i-need-new-certs/21142/4 |
This has the issue of not being supported through the cli configuration so you can't use it with a single compose file without additional files. This could be a problem for users of hosting services where only a single compose file is allowed. I have implemented it like this now and it's working so ty :) Instructions on how to solve:
volumes:
- "/path/to/config:/config"
http:
serversTransports:
firefox:
insecureSkipVerify: true
labels:
- "traefik.http.services.firefox.loadbalancer.serverstransport=firefox@file" |
i'm having the same issues with caddy instead of traefik. any way to make the web authentication work with caddy? |
Uh oh!
There was an error while loading. Please reload this page.
Current Behavior
I am trying to use the
WEB_AUTHENTICATION
functionality. To do that I have to enableSECURE_CONNECTION
.As I'm using traefik as my reverse proxy which automatically provides a valid certificate, doing this doesn't make sense for me as this forces the use of self-signed certificates.
When now trying to access the application via the proxy, I'm getting infinite HTTP 307 redirects to the same page.
This is not the case when setting the
SECURE_CONNECTION=0
variable.Expected Behavior
Be able to use the web authentication functionality by providing certificates through a reverse proxy.
Steps To Reproduce
Environment
No response
Container creation
Container log
The text was updated successfully, but these errors were encountered: