Global HTTP to HTTPS redirect and Catch-All Redirect in Traefik v2 possible?

Is a global HTTP to HTTPS redirect and Catch-All Redirect in Traefik v2 possible? I have tried docker and file provider.

      # Global HTTP to HTTPS redirect
      - "--entrypoints.web.http.redirections.entryPoint.to=websecure"
      - "--entrypoints.web.http.redirections.entryPoint.scheme=https"
      - "--entrypoints.web.http.redirections.entrypoint.permanent=true"
    
      # Catch-All redirect for no matched requests
      #- "traefik.http.routers.catchall.entrypoints=websecure"
      #- "traefik.http.routers.catchall.rule=HostRegexp(`{host:.+}`)"
      #- "traefik.http.routers.catchall.service=noop@internal"
      #- "traefik.http.routers.catchall.priority=1"
      #- "traefik.http.routers.catchall.middlewares=catchall"
      #- "traefik.http.middlewares.catchall.redirectregex.regex=.+"
      #- "traefik.http.middlewares.catchall.redirectregex.replacement=https://google.com"

Thanks!

That looks good for a http to https redirect on entrypoint.

For a catchall reddirect use PathPrefix(`/`) and manually set a very low router priority. Then add the middleware.

Which is really a variation of what you already have, what issues were you running in to?