Hi,
I added ipwhitelist middleware on dynamic.yml file. It's work great.
But i have to add some new IPs on source range list sometime and it's seems that i have to down/up again traefik docker compose file.
is there no hot reload on middlewares with dynamic file ?
Maybe i add a wrong settings...
Traefik v2.5.5
docker-compose.file :
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./conf/traefik.yml:/etc/traefik/traefik.yml
- ./conf/dynamic.yml:/etc/traefik/dynamic.yml
dynamic.yml :
http:
middlewares:
##other middlewares
whitelist:
ipWhiteList:
sourceRange:
- "x.x.x.x/32"
- "y.y.y.y/32"
- "w.w.w.w"
##other stuff
traefik static config traefik.yml :
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
watch: true
file:
filename: /etc/traefik/dynamic.yml
watch: true
docker-compose label for a service :
labels:
##other traefik labels
- traefik.http.routers.my-service.middlewares=whitelist@file
Thanks for your answer.
Bye
