Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 922 Bytes

README.rst

File metadata and controls

27 lines (18 loc) · 922 Bytes

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