[GH-ISSUE #139] Support Secondary Reverse Proxy #1305

Closed
opened 2026-04-16 07:56:54 -05:00 by GiteaMirror · 10 comments
Owner

Originally created by @oschwartz10612 on GitHub (Feb 1, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/139

Originally assigned to: @oschwartz10612, @miloschwartz on GitHub.

Originally created by @oschwartz10612 on GitHub (Feb 1, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/139 Originally assigned to: @oschwartz10612, @miloschwartz on GitHub.
GiteaMirror added the new feature label 2026-04-16 07:56:54 -05:00
Author
Owner

@miloschwartz commented on GitHub (Feb 2, 2025):

Point a Pangolin resource to another reverse proxy running on the same network as Newt

<!-- gh-comment-id:2629224807 --> @miloschwartz commented on GitHub (Feb 2, 2025): Point a Pangolin resource to another reverse proxy running on the same network as Newt
Author
Owner

@the-potato-church commented on GitHub (Apr 26, 2025):

Any ideas why this isn't currently possible? 🙏🏼

Edit: Is it becasue Newt doesn't currently support DNS lookup? (at least I am having trouble pointing it to my local DNS server (I have verified that /bin/sh nslookup <internal domain> from within the container returns the correct IP)

<!-- gh-comment-id:2832240089 --> @the-potato-church commented on GitHub (Apr 26, 2025): Any ideas why this isn't currently possible? 🙏🏼 Edit: Is it becasue Newt doesn't currently support DNS lookup? (at least I am having trouble pointing it to my local DNS server (I have verified that `/bin/sh nslookup <internal domain>` from within the container returns the correct IP)
Author
Owner

@miloschwartz commented on GitHub (Apr 28, 2025):

@the-potato-church This is on the back burner for now. We need to find a way to fit it into the dev cycle. If anyone has experience and wants to tackle this in a PR, we'd be very grateful.

<!-- gh-comment-id:2833883016 --> @miloschwartz commented on GitHub (Apr 28, 2025): @the-potato-church This is on the back burner for now. We need to find a way to fit it into the dev cycle. If anyone has experience and wants to tackle this in a PR, we'd be very grateful.
Author
Owner

@the-potato-church commented on GitHub (Apr 29, 2025):

@miloschwartz Do you have any pointers as to the root cause? Happy to attempt working on it myself. 🙏🏼

<!-- gh-comment-id:2840249238 --> @the-potato-church commented on GitHub (Apr 29, 2025): @miloschwartz Do you have any pointers as to the root cause? Happy to attempt working on it myself. 🙏🏼
Author
Owner

@oschwartz10612 commented on GitHub (Apr 29, 2025):

@the-potato-church I started looking into it on this branch which is outdated now. I think the issue was something Traefik related but I honestly do not remember what it was. Feel free to give it a shot if you would like!

<!-- gh-comment-id:2840369335 --> @oschwartz10612 commented on GitHub (Apr 29, 2025): @the-potato-church I started looking into it on [this branch](https://github.com/fosrl/pangolin/tree/wildcard-resource) which is outdated now. I think the issue was something Traefik related but I honestly do not remember what it was. Feel free to give it a shot if you would like!
Author
Owner

@dguihal commented on GitHub (May 8, 2025):

Weird .... In fact it does .... I mean I managed to do this

Traefik -> Gerbil -> Newt (hosted on kube) -> Traefik (hosted on kube) -> Service (hosted on kube)

The point is that I had to create a dedicated ingress on the traefik on kube as the initial hostname is preserved all along, The hostname override should solve this, but for some reason I am unable to make it work.

I only had to point to the traefik service name as target for pangolin service.

<!-- gh-comment-id:2863344017 --> @dguihal commented on GitHub (May 8, 2025): Weird .... In fact it does .... I mean I managed to do this Traefik -> Gerbil -> Newt (hosted on kube) -> Traefik (hosted on kube) -> Service (hosted on kube) The point is that I had to create a dedicated ingress on the traefik on kube as the initial hostname is preserved all along, The hostname override should solve this, but for some reason I am unable to make it work. I only had to point to the traefik service name as target for pangolin service.
Author
Owner

@ryanehamil commented on GitHub (Jul 31, 2025):

I had run into a similar issue when layering two traefiks. There may be multiple solutions but mine involved using proxypass. This might get more difficult if there are two points of tls decryption.

Mine was just using the first traefik as an SNI relay with no TLS termination. Then the second layer was the TLS endpoint. I'll take a peek at that branch and see if it might be related.

<!-- gh-comment-id:3138243367 --> @ryanehamil commented on GitHub (Jul 31, 2025): I had run into a similar issue when layering two traefiks. There may be multiple solutions but mine involved using proxypass. This might get more difficult if there are two points of tls decryption. Mine was just using the first traefik as an SNI relay with no TLS termination. Then the second layer was the TLS endpoint. I'll take a peek at that branch and see if it might be related.
Author
Owner

@clemone210 commented on GitHub (Sep 4, 2025):

In my setup I use Pocket-ID -> pangolin (+ geoblock) -> gerbil -> newt -> oauth2proxy -> service
This works straight out of the box. Newt and oauth2-proxy are on the same subnet in my case.

<!-- gh-comment-id:3252088570 --> @clemone210 commented on GitHub (Sep 4, 2025): In my setup I use Pocket-ID -> pangolin (+ geoblock) -> gerbil -> newt -> oauth2proxy -> service This works straight out of the box. Newt and oauth2-proxy are on the same subnet in my case.
Author
Owner

@OddMagnet commented on GitHub (Sep 6, 2025):

Would love to see this as well.
I tried using https://github.com/AndrewPaglusch/Traefik-to-Pangolin-Sync, but even after getting it to connect it seems there is some difference between what it sends and what the API expects (and I don't quite have enough time to figure that out and create a PR :( )

<!-- gh-comment-id:3262153686 --> @OddMagnet commented on GitHub (Sep 6, 2025): Would love to see this as well. I tried using [https://github.com/AndrewPaglusch/Traefik-to-Pangolin-Sync](Traefik-to-Pangolin-Sync), but even after getting it to connect it seems there is some difference between what it sends and what the API expects (and I don't quite have enough time to figure that out and create a PR :( )
Author
Owner

@miloschwartz commented on GitHub (Sep 27, 2025):

Moving this to discussions.

<!-- gh-comment-id:3342092288 --> @miloschwartz commented on GitHub (Sep 27, 2025): Moving this to discussions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#1305