mirror of
https://github.com/traefik/traefik.git
synced 2025-09-20 21:31:14 +02:00
Fix missing middleware application for whoami service in docker guide
This commit is contained in:
parent
fcae39bf13
commit
8ac8473554
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user