Created
July 5, 2020 14:26
-
-
Save qduc/e58126023cbd37756377cd0f1149b1d2 to your computer and use it in GitHub Desktop.
Traefik label to redirect http to https
This file contains hidden or 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
labels: | |
- traefik.enable=true | |
- traefik.http.routers.owncloud.entrypoints=web | |
- traefik.http.routers.owncloud.rule=Host(`example.com`) | |
- traefik.http.routers.owncloud.middlewares=redirect-to-https@file | |
- traefik.http.routers.owncloud-secured.rule=Host(`example.com`) | |
- traefik.http.routers.owncloud-secured.tls=true |
This file contains hidden or 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
http: | |
middlewares: | |
redirect-to-https: | |
redirectScheme: | |
scheme: https | |
permanent: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment