mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-09 07:15:04 -05:00
Subpaths #13
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 @Theahlmightyx1 on GitHub (Jan 12, 2025).
I was looking into this for seamless integration with traefik, and have set up traefik as well.
I was informed that Pangolin does not support subpaths and would like to see if I could request as such so that clients experience minimal downtime.
@oschwartz10612 commented on GitHub (Jan 12, 2025):
We have heard this request a bunch and I think it could be done. It could have a side effect of making some targets unhappy because I think their cookies and local storage wont be siloed like it is on sub domains so info can leak or it can cause bugs in targets.
That being said I dont see a reason not to implement it and when it works it works!
@Theahlmightyx1 commented on GitHub (Jan 12, 2025):
For my setup, subpath support would be really helpful for simplifying configurations where some services need to be hosted on subdomains (e.g., https://service.duckdns.org) while others, like Jellyfin, are better suited for subpaths (e.g., https://example.com/jellyfin). This would make Pangolin much more versatile for self-hosted environments like mine.
I was however unaware of potential data leaks/cookie sharing between services with subpaths. So makes sense if it would not sit well with other users.
Anyway, I will be following this project! Thank you for getting back!
@routerino commented on GitHub (Jan 14, 2025):
I would suggest it's better to keep the concerns separate. Domains/Subdomains are a security boundary for many things, like TLS and CORS. When you're mixing and matching services on the same subdomain, you're saying to the browser that they are the same service and can share things like secrets/cookies/whathaveyou. There are many reasons why treating subpaths as subdomains is a bad idea.
Not to mention the fact that most apps do not like being served on subpaths they aren't prepared for and will straight up fail if you try.
For something like pangolin, better to let it not worry about that. If you want to combine services under a single subdomain, have a downstream proxy (like caddy) do that.
@miloschwartz commented on GitHub (Jan 16, 2025):
Closing this issue because it's a duplicate feature request in discussion #24 .