mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-16 22:55:14 -05:00
[PR #1580] [MERGED] Rules for rewriting requests to another path #1123
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/1580
Author: @Pallavikumarimdb
Created: 9/28/2025
Status: ✅ Merged
Merged: 10/4/2025
Merged by: @oschwartz10612
Base:
dev← Head:feature/path-rewriting-rules📝 Commits (10+)
149a4b9basic setup for rewriting requests to another path90d3ac0add rewrite path to create resource page218a5ecfix traefik config file3722b67preserves the rest of the path after the matched prefixa97b6efredesign path match and rewrite modal7b2f1ddbutton fix1b34ee7match and rewrite path ui improve for create resource574cd2amake rewrite data null if no match added664aa6eupdate blueprints51fad19Sanitize all keys📊 Changes
12 files changed (+1004 additions, -292 deletions)
View changed files
📝
messages/en-US.json(+4 -2)📝
server/db/pg/schema.ts(+3 -1)📝
server/db/sqlite/schema.ts(+3 -1)📝
server/lib/blueprints/proxyResources.ts(+6 -2)📝
server/lib/blueprints/types.ts(+4 -2)📝
server/routers/target/createTarget.ts(+3 -1)📝
server/routers/target/listTargets.ts(+3 -1)📝
server/routers/target/updateTarget.ts(+3 -1)📝
server/routers/traefik/getTraefikConfig.ts(+319 -48)📝
src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx(+219 -154)📝
src/app/[orgId]/settings/resources/create/page.tsx(+144 -79)➕
src/components/PathMatchRenameModal.tsx(+293 -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
This PR introduces support for path rewriting rules.
This makes it possible to rewrite incoming request paths before forwarding to targets.

How to test?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.