I'm completely new to Traefik.
I just installed Traefik using Docker and added a http service.
However I want the entrypoint to that service to be be websecure (https) with a TLS certificate.
How can I do that?
I have already created an origin certificate using cloudflare.
Here is my traefik.yml file:
global: checkNewVersion: true sendAnonymousUsage: false api: dashboard: true # true by default insecure: true # Don't do this in production! entryPoints: web: address: :80 websecure: address: :443 providers: docker: exposedByDefault: false file: directory: /etc/traefik watch: true
labels for my Docker service:
traefik.enable=true traefik.http.services.myservice.loadbalancer.server.port=80 traefik.http.routers.myservice.entrypoints=web traefik.http.routers.reposilite.rule=Host(`myservice.mydomain.com`)
This works but it only uses http. I found some documentation regarding TLS certificates but I can't get anything to work.