How to choose HTTP2HTTPS

I find confusing that there are 2 options:

      - traefik.http.routers.http-catchall.middlewares=redirect-to-https@docker
      - traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https
     - "--entrypoints.web.http.redirections.entrypoint.to=websecure"
     - "--entrypoints.web.http.redirections.entrypoint.scheme=https"

Which one is better? Are those equivalent?

Hello,

if you want to apply the redirection on all your services, the second is better.

Yes the both are globally equivalent.

2 Likes