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.
|
||||
http:
|
||||
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:
|
||||
rule: Host(`plex.kaleschke.info`)
|
||||
entryPoints:
|
||||
@@ -16,6 +27,13 @@ http:
|
||||
certResolver: le
|
||||
service: plex
|
||||
|
||||
middlewares:
|
||||
plex-web-redirect:
|
||||
redirectRegex:
|
||||
regex: "^https://plex\\.kaleschke\\.info(/web)?/?$"
|
||||
replacement: "https://plex.kaleschke.info/web/index.html"
|
||||
permanent: true
|
||||
|
||||
services:
|
||||
plex:
|
||||
loadBalancer:
|
||||
|
||||
Reference in New Issue
Block a user