mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-08 21:59:09 -05:00
Redirect loop on additional domains #243
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bhagen55 on GitHub (Apr 17, 2025).
Originally assigned to: @miloschwartz on GitHub.
Hello!
I have been using Pangolin and it has been flawless with a single domain.
I tried adding two additional domains and have not been able to get them working.
I have set up a simple resource that points to a static HTML site hosted by a NGINX docker container.
If I point the resource at my first domain in "General Settings", the page loads fine. If I point it at one of my secondary domains, it gets into a redirect loop.
(redacted my domain and IP addresses)
I do have Crowdsec enabled, but I don't see anything related in it's logs when I try to load the page.
I am running Pangolin v1.2.0 in a docker compose stack.
Here is the domains section of my config:
@oschwartz10612 commented on GitHub (Apr 20, 2025):
If you attempt to visit the 2nd domain with an incognito window or private window does it work?
@bhagen55 commented on GitHub (Apr 21, 2025):
It does not work in incognito or with a fresh cache.
@miloschwartz commented on GitHub (Apr 22, 2025):
A few more question to try to pin point the problem:
Are Pangolin and Badger both fully up to date?
When you start Traefik do you see any errors related to requesting and confirming a certificate? Make sure DNS is set up for those extra domains and they can gain a valid cert all through the same cert resolver (
letsencrypt).During the redirect loop, do you see any errors or anything printed in the Pangolin server logs? If you enable
debuglog level for Pangolin, do you see it continuously requesting session cookies during the redirect loop?@bhagen55 commented on GitHub (Apr 23, 2025):
I am using
image: fosrl/pangolin:1.2.0and badger:I believe those are up to date.
Good call on the SSL side of things, I turned off SSL on one of the problem domains and it loads fine via normal HTTP. I will poke around the Traefik logs to see if I can figure out what is wrong with cert requests.
@bhagen55 commented on GitHub (Apr 23, 2025):
Forgot to add that I did try setting the Pangolin log level to
debugbut did not see any debug output when trying to access the problem domain and getting stuck in a redirect. I did see the usualVerify Session:andResource allowed because no authafter turning off SSL.@bhagen55 commented on GitHub (Apr 23, 2025):
SSL certificate fetching doesn't seem to be the issue. I looked at my
acme.jsonand it all looks correct, including for the problem domains.I tried deleting it, and traefik was able to re-request them all just fine.
@github-actions[bot] commented on GitHub (May 8, 2025):
This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
@bhagen55 commented on GitHub (May 20, 2025):
I haven't had any luck debugging this further. I have updated to Pangolin 1.4.0 and Traefik 3.4.0, and tried removing and re-adding the extra domains.
Any thoughts on additional debugging/troubleshooting steps I can take?
@alexandrescieux commented on GitHub (Jun 1, 2025):
I encounter the same redirect loop for every resource when 'Enable SSL' is turned on.
I deployed Pangolin in a k3s cluster with Traefik as the Ingress Controller.
It works flawlessly over HTTPS with 'Enable SSL' disabled, as long as I let the Traefik Ingress Controller handle the SSL termination alone (using plain HTTP after the Ingress).
@bhagen55 commented on GitHub (Oct 16, 2025):
I am pretty sure this was a Cloudflare configuration issue, I should have investigated that first 🙃
Some combination of turning off TLS termination at Cloudflare (that I didn't even realize was enabled) and turning off Cloudflare proxying causes the redirect error to go away.