How to override an entrypoint middleware for a specific route?
Hello,
My need is pretty simple but following all what I read today I guess there is no way to do what I want with Traefik. I would know if smarter people know to perform this.
I do have pretty the same use case that this old topic. Let's see a simple example:
-
At entrypoint level, only
192.168.0.0/24
ip are allowed. -
At route level, on
mydomain.example.com
,192.168.0.0/24
and1.2.3.4/32
are allowed. That means, the range on route level is higher that the entrypoint level.
According Traefik's current logic, middlewares will be chained and the root middleware will be applied first... rejecting the allowed ip 1.2.3.4
.
My wish would be to be able to override the global middleware but according this thread, I undersand it won't be possible. Also, I was looking for how to do it without removing the entrypoint middleware and copy/paste it to every router (currently >50). Is there a trick to do this?
If it's not possible to override entrypoint middleware, how are you managing this?
Have a nice day!