I seem to be having some issues with getting my traefik instance and proxmox to work correctly.
I have this setup up on docker on a pi5. All The docker end works without a hitch.
It's going down the dynamic file config that I have the issue.. I followed Techno Tims Video to a T and its working just fine but when I get to the file part is the issue. traefik shows tls for that service but when but then i go to that dns name it just says nope.
api:
dashboard: true
debug: true
entryPoints:
http:
address: ":80"
http:
redirections:
entryPoint:
to: https
scheme: https
https:
address: ":443"
serversTransport:
insecureSkipVerify: true
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
file:
filename: /config.yml
certificatesResolvers:
cloudflare:
acme:
email: admin@jersh.tech #add your email
storage: acme.json
caServer: https://acme-v02.api.letsencrypt.org/directory # prod (default)
# caServer: https://acme-staging-v02.api.letsencrypt.org/directory # staging
dnsChallenge:
provider: cloudflare
#disablePropagationCheck: true # uncomment this if you have issues pulling certificates through cloudflare, By setting this flag to true disables the need to wait for the propagation of the TXT record to all authoritative name servers.
resolvers:
- "1.1.1.1:53"
- "1.0.0.1:53"
Check that your domain resolves correctly to the IP. Then requests should show up in Traefik log and access log.
Note that your Proxmox router has no certResolver assigned.
Overall your config doesn’t look very clean. Using multiple entrypoints for a router with redirect seems strange. Forward headers are set automatically, so not required.
You can simplify some config by placing it centrally on entrypoint, like certResolver and http-to-https redirect, see simple Traefik example.