Traefik Catch all route for ssl and redirects to 443?

Viewed 61

I'm trying to set up the acme client for my traefik server and I'm trying to create a catch all route that redirects port 80 to port 443 and also provisions an ssl certificate. This is my config so far

entryPoints:
  web:
    address: :80
  web-secure:
    address: :443

providers:
  docker: true

api:
  dashboard: true
  insecure: true

http:
  routers:
    catchall:
      rule: HostSNI(`gateway.dogma.net`)
      tls:
        certResolver: private

certificatesResolvers:
  private:
    acme:
      email: "#####" # redacted
      storage: "acme.json"
      caServer: "https://ca.dogma.net:9000/acme/acme/directory"
      httpChallenge:
        entryPoint: web

When I set up my containers with a PathPrefix(/nameofthecontainer) routing rule I don't get redirected to port 443 and I don't get an ssl certificate

I've already set up my step-ca certificate authority and my dns points to it via the url ca.dogma.net

0 Answers
Related