mirror of
https://github.com/traefik/traefik
synced 2026-02-03 10:00:33 +00:00
Fix missing middleware application for whoami service in docker guide
This commit is contained in:
@@ -258,6 +258,9 @@ labels:
|
||||
|
||||
# IP Allowlist Middleware
|
||||
- "traefik.http.middlewares.ip-allowlist.ipallowlist.sourceRange=127.0.0.1/32,192.168.0.0/16,10.0.0.0/8"
|
||||
|
||||
# Apply middlewares to whoami router
|
||||
- "traefik.http.routers.whoami.middlewares=secure-headers,ip-allowlist"
|
||||
```
|
||||
|
||||
Add the same middleware to your whoami-api service:
|
||||
|
||||
Reference in New Issue
Block a user