KI-AGENT: Seafile Nebenpfade auf Hauptdomain routen

This commit is contained in:
2026-05-22 17:30:24 +02:00
parent 0d0dc33e84
commit 5400fd7ad5
2 changed files with 12 additions and 3 deletions

View File

@@ -166,10 +166,19 @@ services:
start_period: 30s
labels:
- traefik.enable=true
- traefik.http.routers.fedeo-seafile.rule=Host(`${DOMAIN}`) && PathPrefix(`/files`)
- "traefik.http.middlewares.fedeo-seafile-accounts.redirectregex.regex=^https?://([^/]+)/accounts/(.*)"
- "traefik.http.middlewares.fedeo-seafile-accounts.redirectregex.replacement=https://$${1}/files/accounts/$${2}"
- traefik.http.middlewares.fedeo-seafile-accounts.redirectregex.permanent=false
- "traefik.http.routers.fedeo-seafile.rule=Host(`${DOMAIN}`) && (PathPrefix(`/files`) || PathPrefix(`/media`) || PathPrefix(`/seafhttp`) || PathPrefix(`/seafdav`))"
- traefik.http.routers.fedeo-seafile.entrypoints=websecure
- traefik.http.routers.fedeo-seafile.tls.certresolver=letsencrypt
- traefik.http.routers.fedeo-seafile.priority=100
- traefik.http.routers.fedeo-seafile-accounts.rule=Host(`${DOMAIN}`) && PathPrefix(`/accounts`)
- traefik.http.routers.fedeo-seafile-accounts.entrypoints=websecure
- traefik.http.routers.fedeo-seafile-accounts.tls.certresolver=letsencrypt
- traefik.http.routers.fedeo-seafile-accounts.middlewares=fedeo-seafile-accounts
- traefik.http.routers.fedeo-seafile-accounts.priority=110
- traefik.http.routers.fedeo-seafile-accounts.service=noop@internal
- traefik.http.services.fedeo-seafile.loadbalancer.server.port=80
- traefik.docker.network=fedeo_web
networks: