I have a redirect for http to https defined in my static config as follows:
- --entrypoints.web.Address=:80 - --entrypoints.web.http.redirections.entrypoint.priority=1 - --entrypoints.web.http.redirections.entrypoint.scheme=https - --entrypoints.web.http.redirections.entrypoint.to=websecure
(websecure is defined and works fine)
Elsewhere I have a ConsulCatalog service that defines some specific content that I do want served over HTTP (and not HTTPS), which has the following labels defined in consul:
traefik.enable=true traefik.http.routers.someservice.rule=Host(`mydomain.com`) traefik.http.routers.someservice.priority=100 traefik.http.routers.someservice.entrypoints=web
My understanding is that the fact that the redirection has priority 1 should mean that the
someservice router should deal with the request and it should never get to the http-to-https, however, a request to
http://mydomain.com/foo is getting a 301 to
https://mydomain.com/foo (I've tried different cache-busting URIs to ensure I'm not getting a browser-cached 301), and nothing at all shows up in the traefik access log.
Am I doing something wrong?
(And is there any way to see the priorities from the dashboard?)