Hi, I'm completely new to this, so I might have some definitions wrong.
I'm trying to set up my home server with multiple applications with docker-compose. The two main applications are Jellyfin en Nextcloud. It all runs but I'm having a small problem with the routing. This is how I want it to behave:
local.domain.com
redirects to nextcloud
local.domain.com/jellyfin
redirects to jellyfin
local.domain.com/proxy
to traefik UI
The only thing that does not work is the redirect to jellyfin. If I go to local.domain.com/jellyfin
it goes to nextcloud. If, however, I go to local.domain.com/jellyfin/web/index.html
(so I guess the direct path to jellyfins webserver) it does work, but I don't want to type that long URL every time. How do I get this to work? (the weird thing is that /proxy does go to traefik UI, as intended)
These are my labels for traefik:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.frontend.rule=Host:local.domain.com;PathPrefixStrip:/proxy;PathPrefix:/proxy"
- "traefik.port=8080"
- "traefik.frontend.auth.basic=
Labels for nextcloud:
- "traefik.backend=nextcloud"
- "traefik.docker.network=web"
- "traefik.enable=true"
- "traefik.frontend.rule=Host:local.domain.com;"
- "traefik.port=80"
And finally the labels for jellyfin:
- "traefik.enable=true"
- "traefik.backend=jellyfin"
- "traefik.frontend.rule=Host:local.domain.com; PathPrefixStrip:/jellyfin;PathPrefix:/jellyfin"
- "traefik.port=8096"
- "traefik.protocol=http"
- "traefik.docker.network=web"
- "traefik.frontend.headers.SSLRedirect=true"
- "traefik.frontend.headers.STSSeconds=315360000"
- "traefik.frontend.headers.browserXSSFilter=true"
- "traefik.frontend.headers.contentTypeNosniff=true"
- "traefik.frontend.headers.forceSTSHeader=true"
- "traefik.frontend.headers.SSLHost=local.domain.com"
- "traefik.frontend.headers.STSIncludeSubdomains=true"
- "traefik.frontend.headers.STSPreload=true"
- "traefik.frontend.headers.frameDeny=true"
And my traefik.toml:
debug = false
logLevel = "ERROR"
defaultEntryPoints = ["http", "https"]
[web]
# Port for the status page
address = ":8080"
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[retry]
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "local.domain.com"
watch = true
exposedByDefault = false
[acme]
email = "not today"
storage = "acme.json"
entryPoint = "https"
# onDemand = true
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"
Also, while making this topic I found out I'm using an older version of traefik, is that a problem? It seems to be quite hard to change everything to v2.0...