Forked from containeroo-gists/traefik-global-redirect.yml
Created
August 6, 2021 22:22
-
-
Save shawnhank/e62587b9824810d3cca0f1702da63814 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 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