mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-16 06:08:33 -05:00
[GH-ISSUE #565] [Feature Request] Ability to set passHostHeader to false on Auto created service for resource target #3449
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 @oidebrett on GitHub (Apr 22, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/565
Originally assigned to: @uncle-tee on GitHub.
Currently, when you create a new resource and map this to a target, a service gets configured in Traefik. By default, this service sets the passHostHeader to true
There are some cases where its required to set passHostHeader to false such as when you are trying to proxy to an existing publicly accessible website with its own ssl.
for example
@miloschwartz commented on GitHub (Apr 23, 2025):
This is easy to add, hope to get to it soon. If anyone sees this and wants to start a PR, please do! Thanks for the suggestion.
@uncle-tee commented on GitHub (Apr 30, 2025):
I will happily take this since I am just getting to understand Pangolin Internals. Can you assign to me?
@oschwartz10612 commented on GitHub (May 2, 2025):
Thanks @uncle-tee let us know if you have any questions!
@uncle-tee commented on GitHub (May 4, 2025):
At the moment, Pangolin is not adding the header host middleware to the router, I will raise a PR to add this. @oschwartz10612 Is this a right approach?
@uncle-tee commented on GitHub (May 4, 2025):
I just confirmed that the middleware is added by Pangolin, so I think you just have to update your configuration by simply adding hostname under Custom Host Header in the proxy settings.
@miloschwartz commented on GitHub (Sep 27, 2025):
Thanks, converting this to a discussion thread so others can upvote and participate!