Greetings,
I'm defeated by this error. I've dug through all the documentation and must be overlooking something simple, so I really just need another set of eyes to tell me how I missed something obvious. I stole most of the config information from this guide, but I can't seem to find out where I messed up.
traefik.yml:
api:
dashboard: true
debug: true
certificateResolvers:
cloudflare:
acme:
dnsChallenge:
provider: cloudflare
resolvers:
- "1.1.1.1:53"
- "1.0.0.1:53"
email: myemail@gmail.com
storage: /acme.json
entryPoints:
http:
address: ":80"
https:
address: ":443"
log:
level: DEBUG
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
# file:
# filename: /config.yml
serversTransport:
insecureSkipVerify: true
Portainer docker-compose file:
container_name: Traefik
environment:
CF_DNS_API_TOKEN: $CLOUDFLARE_TOKEN
image: traefik:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.entrypoints=http"
- "traefik.http.routers.traefik.rule=Host(`legion.epicteammate.com`)"
- "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.traefik.middlewares=traefik-https-redirect"
- "traefik.http.routers.traefik-secure.entrypoints=https"
- "traefik.http.routers.traefik-secure.rule=Host(`legion.epicteammate.com`)"
- "traefik.http.routers.traefik-secure.tls=true"
- "traefik.http.routers.traefik-secure.tls.certResolver=cloudflare"
- "traefik.http.routers.traefik-secure.tls.domains[0].main=legion.epicteammate.com"
- "traefik.http.routers.traefik-secure.tls.domains[0].sans=*.legion.epicteammate.com"
- "traefik.http.routers.traefik-secure.service=api@internal"
networks:
- proxy
ports:
- 80:80
- 443:443
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /opt/traefik/traefik.yml:/traefik.yml
- /opt/traefik/acme.json:/acme.json
- /var/run/docker.sock:/var/run/docker.sock:ro
acme.json permissions set to 0600
The only logs I get when I start the container are these:
2024-06-05T22:24:02-04:00 ERR error="accept tcp [::]:443: use of closed network connection" entryPointName=https
2024-06-05T22:24:02-04:00 ERR error="accept tcp [::]:80: use of closed network connection" entryPointName=http
2024-06-05T22:24:02-04:00 ERR error="close tcp [::]:443: use of closed network connection" entryPointName=https
2024-06-05T22:24:02-04:00 ERR error="close tcp [::]:80: use of closed network connection" entryPointName=http
2024-06-05T22:24:04-04:00 ERR Router uses a non-existent certificate resolver certificateResolver=cloudflare routerName=traefik-secure@docker
Someone please point out what is staring me in the face but I can't see!