Skip to content
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

Archivy Redirect behind Traefik with HTTPS redirecting to HTTP #11

Open
lennysh opened this issue Feb 19, 2021 · 1 comment
Open

Archivy Redirect behind Traefik with HTTPS redirecting to HTTP #11

lennysh opened this issue Feb 19, 2021 · 1 comment

Comments

@lennysh
Copy link

lennysh commented Feb 19, 2021

So, here's my issue. I have Traefik running elsewhere, and it's configured to use the file backend, instead of the docker backend.

Browsing to https://<domain>/login displays properly, but browsing to https://<domain> redirects me back to http://<domain> (because it's trying to redirect me to /login):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to target URL: <a href="/login?next=%2F">/login?next=%2F</a>.  If not click the link.

Even when browsing to https://<domain>/login (where the page loads fine, I can't do anything, because when I do, it keeps redirecting me back to HTTP. So every time it goes back to HTTP, I just add an S and I can get that page to load (until I click something else), and the process keeps repeating.

I tried to fix this in Traefik (by redirecting HTTP to HTTPS), but then I get the "Too Many Redirects" message.

I think it would be a great idea to add a URL option in the config so we can add the full domain (https://<domain>) to the config, and the redirect would use it. Or at least be able to tell it to use HTTPS instead of HTTP (HTTPS=true) or something.

Thoughts? I mean, if I missed something that already fixes this issue, please let me know.

@Jafner
Copy link
Contributor

Jafner commented Feb 19, 2021

That's a weird issue.
I have a working Archivy instance behind Traefik, but I'm using the Docker provider instead of the file provider.
Can you give us more information about your configuration?

What labels are you using for the Archivy container?
What does your Traefik static config look like?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants