[Feature] Update traefik dynamic config to also use resource name #860

Closed
opened 2026-04-05 17:53:33 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @OddMagnet on 9/25/2025

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 adds the name of the resource to the dynamic config of Traefik

How to test?

  1. Clone and build the project (see contributing in the docs)
  2. Go through the initial setup process
  3. Create a site (local is fine)
  4. Create a resource
  5. Check http://localhost:3001/api/v1/traefik-config to see that the router and service now are named like this 1-resourceName-router / 1-resourceName-service
  6. Try creating a resource with special-characters and spaces
  7. The name in the dynamic config should be sanitized of all special characters and spaces
*Originally created by @OddMagnet on 9/25/2025* ## 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 adds the name of the resource to the dynamic config of Traefik ## How to test? 1. Clone and build the project (see [contributing](https://docs.digpangolin.com/development/contributing) in the docs) 2. Go through the initial setup process 3. Create a site (local is fine) 4. Create a resource 5. Check `http://localhost:3001/api/v1/traefik-config` to see that the `router` and `service` now are named like this `1-resourceName-router` / `1-resourceName-service` 6. Try creating a resource with special-characters and spaces 7. The name in the dynamic config should be sanitized of all special characters and spaces
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#860