covid-taskforce-cplp / hxl-standard-tools-stack

Unofficial IaC with Ansible and Docker Compose stack of selected tools related to HXL Standard.
The Unlicense
2 stars 0 forks source link

Traefik 2.2 with automatic https via let's encrypt #5

Open fititnt opened 4 years ago

fititnt commented 4 years ago

Most guides about Traefik are outdated (using Traefik 1.x, the 1.7 still with a lot of user base) and the default configuration examples for Traefik 2.x do not provide Let's Encrypt enabled by default. Actually, Traefik 2.x have more configuration options than the 1.x series, but this broke the compatibility.

This issue is to make a combo with the traefik.toml + docker-compose.yml that deliver valid HTTPS.

fititnt commented 4 years ago

The automatic https already is working. Maybe one thing missing is implement an middleware that make easier to specify on docker-compose labels that the user wants to redirect from http to https. But I have no idea on how to do it on Traefik 2.2 yet, so I will do on next run.