Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shawnhank/e62587b9824810d3cca0f1702da63814 to your computer and use it in GitHub Desktop.
Save shawnhank/e62587b9824810d3cca0f1702da63814 to your computer and use it in GitHub Desktop.
Traefik Global Entrypoint Redirection
api:
dashboard: true
debug: true
entryPoints:
http:
address: ":80"
http:
redirections:
entryPoint:
to: https
https:
address: ":443"
http:
middlewares:
- default-headers@file
tls:
certResolver: cloudflare
domains:
- main: example.com
sans:
- "*.example.com"
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
file:
filename: /config.yml
certificatesResolvers:
http:
acme:
email: [email protected]
storage: acme.json
httpChallenge:
entryPoint: http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment