Skip to content

fix 'PathPrefix(/videoplayback)' in companion-traefik.md #653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FawkesOficial
Copy link

@FawkesOficial FawkesOficial commented Jun 21, 2025

acording to:
https://doc.traefik.io/traefik/routing/routers/#path-pathprefix-and-pathregexp

the correct syntax would be just "PathPrefix(/videoplayback)" and not "PathPrefix(/videoplayback*)".

was "PathPrefix(/videoplayback*)" intentional for some reason @auralglow ?

acording to:
https://doc.traefik.io/traefik/routing/routers/#path-pathprefix-and-pathregexp

the correct syntax would be just PathPrefix(`/videoplayback`)
@auralglow
Copy link
Contributor

Hiya @FawkesOficial,

To be fair, in other configs I've done with Traefik in general, PathPrefix works better with a wildcard at the end instead of without.

I've checked the videplayback endpoint and it seems that it has the arguments at the end of the URL and I thought that Traefik wouldn't take them and put the wildcard as a precaution, just like in the Caddy config (the Caddy config has the wildcard at the end).

I've tried your suggested config and it works as well.

Thanks for letting me know ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants