/flask_traefik_letsencrypt

Running a flask application over HTTPS with traefik and Let's Encrypt

Primary LanguagePythonBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Running a Flask application over HTTPS with traefik and Let's Encrypt

This is a dummy example to show how to run a flask application over HTTPS using traefik and Let’s Encrypt.

To obtain a real certificate from Let's Encrypt you need a valid domain name. You have to forward port 80 and 443 to your machine IP if you run this on a private network.

Note that you should put your real email in the traefik/traefik.toml file.

To test, run:

# set the TRAEFIK_FRONTEND_RULE variable to "Host:<your domain>"
$ export TRAEFIK_FRONTEND_RULE=Host:myhost.example.com
$ docker-compose up

Go to https://myhost.example.com

Voilà!

For more information, see: http://beenje.github.io/blog/posts/running-your-application-over-https-with-traefik