Fix Docker example in "Strip and Rewrite Path Prefixes" in migration guide

This commit is contained in:
Tim 2019-12-06 02:42:04 +03:00 committed by Traefiker Bot
parent 8dfc0d9dda
commit a7d7c2b98b

View file

@ -560,8 +560,8 @@ with the path `/admin` stripped, e.g. to `http://<IP>:<port>/`. In this case, yo
```yaml tab="Docker"
labels:
- "traefik.http.routers.admin.rule=Host(`company.org`) && PathPrefix(`/admin`)"
- "traefik.http.routers.admin.middlewares=admin-stripprefix"
- "traefik.http.middlewares.admin-stripprefix.stripprefix.prefixes=/admin"
- "traefik.http.routers.web.middlewares=admin-stripprefix@docker"
```
```yaml tab="Kubernetes IngressRoute"