plex: add web redirect for public route
This commit is contained in:
@@ -6,6 +6,17 @@
|
|||||||
# exception and point Traefik at the Unraid LAN IP.
|
# exception and point Traefik at the Unraid LAN IP.
|
||||||
http:
|
http:
|
||||||
routers:
|
routers:
|
||||||
|
plex-web:
|
||||||
|
rule: Host(`plex.kaleschke.info`) && (Path(`/`) || Path(`/web`))
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
middlewares:
|
||||||
|
- plex-web-redirect
|
||||||
|
- secure-headers@file
|
||||||
|
tls:
|
||||||
|
certResolver: le
|
||||||
|
service: plex
|
||||||
|
|
||||||
plex:
|
plex:
|
||||||
rule: Host(`plex.kaleschke.info`)
|
rule: Host(`plex.kaleschke.info`)
|
||||||
entryPoints:
|
entryPoints:
|
||||||
@@ -16,6 +27,13 @@ http:
|
|||||||
certResolver: le
|
certResolver: le
|
||||||
service: plex
|
service: plex
|
||||||
|
|
||||||
|
middlewares:
|
||||||
|
plex-web-redirect:
|
||||||
|
redirectRegex:
|
||||||
|
regex: "^https://plex\\.kaleschke\\.info(/web)?/?$"
|
||||||
|
replacement: "https://plex.kaleschke.info/web/index.html"
|
||||||
|
permanent: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
plex:
|
plex:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
|
|||||||
Reference in New Issue
Block a user