Created
May 26, 2020 21:03
-
-
Save lfache/c57fb826e1fa236d5f99f3894969281a to your computer and use it in GitHub Desktop.
Modify Traefik container for HTTP to HTTPS redirect
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
containers: | |
- name: traefik | |
image: traefik:v2.2 | |
args: | |
- --api.insecure | |
- --accesslog | |
- --entrypoints.web.Address=:80 | |
- --entrypoints.websecure.Address=:443 | |
- --providers.kubernetescrd | |
- --entrypoints.web.http.redirections.entryPoint.to=:443 | |
- --entrypoints.web.http.redirections.entryPoint.scheme=https | |
- --certificatesresolvers.myresolver.acme.tlschallenge | |
- [email protected] | |
- --certificatesresolvers.myresolver.acme.storage=acme.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment