How to disable a global middleware for a specific route?

I defined a global middleware (authentication through Authelia) for all the routes

  websecure:
    http:
      middlewares:
        - authelia@file

This matches my ~50 routes.

There is one specific route (to a service hosted on localhost) for which I would like to disable this middleware. How to do that?


There is a similar older question about that (Middlewares on all routers but one), for v2, and at that time it was not possible. Has that changed maybe?

If its globally assigned to entrypoint, then I don't think it can be disabled.

If it's for localhost, maybe you could use a different entrypoint with a different port.