Skip to content

Instantly share code, notes, and snippets.

@willquill
Created July 22, 2024 17:10
Show Gist options
  • Save willquill/e59f8b7cefcfa8e60b9ac7dee90c4789 to your computer and use it in GitHub Desktop.
Save willquill/e59f8b7cefcfa8e60b9ac7dee90c4789 to your computer and use it in GitHub Desktop.
traefik configuration yaml with multiple entrypoints
api:
dashboard: true
debug: true
entryPoints:
http:
address: ":80"
http:
redirections:
entryPoint:
to: https
scheme: https
https:
address: ":443"
mqtt:
address: ":8883"
mqtt-websock:
address: ":8083"
serversTransport:
insecureSkipVerify: true
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
file:
filename: /config.yml # this file contains routers, middlewares, and services
watch: true
certificatesResolvers:
cloudflare:
acme:
email: my-cloudflare-email-address
storage: acme.json
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.
# delayBeforeCheck: 5
resolvers:
- "1.1.1.1:53"
- "1.0.0.1:53"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment