mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-06 20:59:07 -05:00
[PR #1177] [MERGED] Portbinding fixes #5353
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?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/1177
Author: @Error-Gap
Created: 7/31/2025
Status: ✅ Merged
Merged: 8/3/2025
Merged by: @oschwartz10612
Base:
dev← Head:portbinding-fixes📝 Commits (3)
1a4d34aMerge pull request #1172 from fosrl/dev69b28b9Merge branch 'dev'481714fFix for issues with binding ports other than 80/443📊 Changes
3 files changed (+17 additions, -7 deletions)
View changed files
📝
server/routers/badger/exchangeSession.ts(+8 -2)📝
server/routers/badger/verifySession.ts(+4 -5)📝
src/app/auth/resource/[resourceId]/page.tsx(+5 -0)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
server/routers/badger/verifySession.ts : verifyResourceSession() updated code behind "cleanHost" var to a regex which strips the trailing :port for any port (rather than a string match for 80/443)
src/app/auth/resource/[resourceId]/page.tsx : ResourceAuthPage() added a secondary match for serverResourceHost and redirectHost that accounts for ports
server/routers/badger/exchangeSession.ts : Updated exchangeSession() to use the same "cleanHost" type var (with port-stripping) as in verifyResourceSession(), replaced references to "host" with "cleanHost"
How to test?
When running from docker, bind the ports in docker-compose with something other than 443:443 and 80:80
(in my case I also changed the "entrypoints" ports for traefik but this may not be necessary)
Fixes #1133
Fixes #1142
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.