change pathprefix to path

This commit is contained in:
2025-07-16 19:15:42 +02:00
parent b396902370
commit d7e5bf484c

View File

@@ -13,12 +13,7 @@ services:
- traefik.enable=true
# Route: https://b.mindboost.team/media (optionally with /anything/after/that)
- traefik.http.routers.media.rule=Host(`b.mindboost.team`) && PathRegexp(`\.(mp3|aac|m4a|ogg|aac|opus|flac|wav)$`)
# Strip /media from the request *before* it reaches Nginx,
# so Nginx still serves /index.html, /css/site.css, etc.
- traefik.http.routers.media.middlewares=media-strip
- traefik.http.middlewares.media-strip.stripPrefix.prefixes=/media
- traefik.http.routers.media.rule=Host(`b.mindboost.team`) && Path(`/{file:.*\\.(mp3|aac|m4a|ogg|opus|flac|wav)}`)
# TLS via the proxys “websecure” entrypoint
- traefik.http.routers.media.entrypoints=websecure