Traefik + cloudflare ssl

What is the name of the domain?

prizmatech.site

What is the issue you’re encountering

error certificates ssl with traefik

Was the site working with SSL prior to adding it to Cloudflare?

Yes

What is the current SSL/TLS setting?

Flexible

What are the steps to reproduce the issue?

docker-compose.yml
version: ‘3.3’

services:
traefik:
image: “traefik:latest”
command:
- “–log.level=DEBUG”
- “–api.insecure=true”
- “–api.dashboard=true”
- “–providers.docker=true”
- “–providers.docker.exposedbydefault=false”
- “–entrypoints.web.address=:80”
- “–entrypoints.websecure.address=:443”
- “–providers.file.directory=/etc/traefik/dynamic_conf”
ports:
- “80:80”
- “443:443”
- “3000:8080”
networks:
- epsilon
volumes:
- “/var/run/docker.sock:/var/run/docker.sock:ro”
- “./config.yml:/etc/traefik/dynamic_conf/conf.yml:ro”
- “./certs:/certs:ro”

networks:
epsilon:
external: true
volumes:
certificados:

config.yml
tls:
certificates:
- certFile: ./domain.crt
keyFile: ./private.key

I had this traefik setup with porkbun.com, and the SSL certificates were working fine, I switched to Cloudflare, they tell me I need to create origin certificates, I added the certificates and traefik tells me the certificates are invalid, how should I change the configuration so that traefik works with Cloudflare’s SSL?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.