r/Traefik•
Foxcon84

ReplacePathRegex and query parameters

Hey Everyone,

I've been looking through the docs and other help forums but can't quite find an answer. I'm trying to use ReplacePathRegex to essentially proxy a request to add an apikey query parameter to slightly altered URL but hitting a 401 making me think that it drops everything after the ? in the replaced URL.

Example code:

replacePathRegex:
  regex: "^(.*)/radarrcover/(.*)"
  replacement: "/api/v3/mediacover/${2}?apikey=<REDACTED>"

I was hoping to make it work with one of the Glance app community widgets

Perhaps this is not possible with this module. Any help would be appreciated!

Posted Aug 17, 2025, 5:45 PM UTC

12

Comments aren't archived yet

This post had 2 comments on Reddit. Comments for this period haven't been loaded into the archive yet.