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)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/fosrl/pangolin/pull/1177
**Author:** [@Error-Gap](https://github.com/Error-Gap)
**Created:** 7/31/2025
**Status:** ✅ Merged
**Merged:** 8/3/2025
**Merged by:** [@oschwartz10612](https://github.com/oschwartz10612)
**Base:** `dev` ← **Head:** `portbinding-fixes`
---
### 📝 Commits (3)
- [`1a4d34a`](https://github.com/fosrl/pangolin/commit/1a4d34a8020b67a07f553fe21947f96c200dbbf9) Merge pull request #1172 from fosrl/dev
- [`69b28b9`](https://github.com/fosrl/pangolin/commit/69b28b9b02f67b5dbdd004dafdfcb0ebe331655a) Merge branch 'dev'
- [`481714f`](https://github.com/fosrl/pangolin/commit/481714f095d2e8a4a1e34207bb3569194bcc3538) Fix for issues with binding ports other than 80/443
### 📊 Changes
**3 files changed** (+17 additions, -7 deletions)
<details>
<summary>View changed files</summary>
📝 `server/routers/badger/exchangeSession.ts` (+8 -2)
📝 `server/routers/badger/verifySession.ts` (+4 -5)
📝 `src/app/auth/resource/[resourceId]/page.tsx` (+5 -0)
</details>
### 📄 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
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.