I'm trying to follow this:
# grep ipwhitelist docker-compose.override.yml
and even though I did specified
sourcerange, I'm able to access resource from anywhere..
# docker exec -it traefik uname -a
Linux ae81ad8c61b7 6.1.0-11-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-4 (2023-08-08) x86_64 Linux
# docker exec -it traefik traefik version
Go version: go1.20.6
Thank you in advance
test from different source ip:
# curl https://whoami.X.Y.Z
GET / HTTP/1.1
You need to declare the middleware and assign the middleware to the router, see doc example.
you're right, I was missing applying the middleware to the router, similar to this:
# Apply the middleware named `foo-add-prefix` to the router named `router1`
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.