Traefik tls cli parameters

Are there cli parameters for file parameters certFile and keyFile:

[entryPoints]
  [entryPoints.http]
  address = ":80"
    [entryPoints.http.redirect]
    entryPoint = "https"
  [entryPoints.https]
  address = ":443"
    [entryPoints.https.tls]
      [[entryPoints.https.tls.certificates]]
      certFile = "examples/traefik.crt"
      keyFile = "examples/traefik.key"

I need it because I can not use let's encript and I have wildcard certificate (*.domain.com) which I want to pass to docker command section.

Hello,

You have to define your entry points with the CLI:

traefik:
  image: traefik:v1.7.14
  command:
    - "--entryPoints=Name:http Address::80 Redirect.EntryPoint:https"
    - "--entryPoints=Name:https Address::443 TLS:/examples/traefik.crt,/examples/traefik.key"
# ...

https://docs.traefik.io/v1.7/configuration/entrypoints/#all-available-options

1 Like