mbirth ,

I think the redirect must go into the dynamic configuration, not the static one. But yes, you can setup a generic redirect. I did it like this:

http:

  routers:

    redirect-https:
      rule: HostRegexp(`{catchall:.*}`) 
      entrypoints: web
      middlewares: redirect-https
      service: dummy

  services:

    dummy:
      loadbalancer:
        servers:
          - url: "about:blank"

This is in a file 010-redirect-https.yml in my Traefik's dynamic configuration directory. And it works for all http URLs.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • selfhosted@lemmy.world
  • test
  • worldmews
  • mews
  • All magazines