Hey boys.
I have a proxy in front of my traefik handling SSL, I know traefik is perfectly capable of doing this for me, but this is out of my hands, i must let the proxy handle SSL.
I'm also restricted by having to "host" the dashboard on a route prefix called /admin/traefik/.
I cannot get this to work.
Here is my docker service configuration.
traefik:
image: traefik:v2.0.6
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.swarmmode=true"
- "--api=true"
- "--api.insecure=true"
- "--api.dashboard=true"
ports:
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.api.rule=PathPrefix(`/admin/traefik`)
- traefik.http.routers.api.service=api@internal
- traefik.http.routers.api.middlewares=api-strip@docker
- traefik.http.middlewares.api-strip.stripprefix.prefixes=/admin/traefik
- traefik.http.services.api.loadbalancer.server.port=8080
- traefik.http.services.api.loadbalancer.server.scheme=http
This kindda works, but it seems like all JS, CSS resources etc. are hardcoded to /
I had this working in 1.7 perfectly fine using:
deploy:
labels:
- traefik.enable=true
- traefik.frontend.rule=HostRegexp:{catchall:.*};PathPrefixStrip:/admin/traefik
- traefik.port=8080
Please help
Yours
Mads