change pathprefix to path
This commit is contained in:
@@ -13,12 +13,7 @@ services:
|
|||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
|
|
||||||
# Route: https://b.mindboost.team/media (optionally with /anything/after/that)
|
# 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)$`)
|
- traefik.http.routers.media.rule=Host(`b.mindboost.team`) && Path(`/{file:.*\\.(mp3|aac|m4a|ogg|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
|
|
||||||
|
|
||||||
# TLS via the proxys “websecure” entrypoint
|
# TLS via the proxys “websecure” entrypoint
|
||||||
- traefik.http.routers.media.entrypoints=websecure
|
- traefik.http.routers.media.entrypoints=websecure
|
||||||
|
Reference in New Issue
Block a user