Entrypoints redirections overwrite with router

Hello,

I am using entrypoints redirection like this and it is super.

entryPoints:
  web:
    address: :80
    http:
      redirections:
        entryPoint:
          to: websecure
          scheme: https

  websecure:
    address: :443

But I have one route where I do not want to use redireciton to https. This is not working and alway it is redirect to https.

http:
  routers:
    prod:
      rule: "Host(`my.domain.com` )"
      service: "service@docker"
      priority: 100
      entryPoints:
        - "web"

Is here any solution?

Thanks

The entrypoint redirection has a ridiculously high priority. That can be changed via environment variable matching per entrypoint:

TRAEFIK_ENTRYPOINTS_<NAME>_HTTP_REDIRECTIONS_ENTRYPOINT_PRIORITY
ref: Reference/Static Configuration

Of set your rule priority to 2147483647

1 Like