Created
October 20, 2020 07:21
-
-
Save containeroo-gists/8f924b5c976330e76b07b4abcad9ebd4 to your computer and use it in GitHub Desktop.
Traefik Global Entrypoint Redirection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@email.com | |
storage: acme.json | |
httpChallenge: | |
entryPoint: http |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment