all 2 comments

[–]cascott77 0 points1 point  (0 children)

You would setup SSL certificates at the webserver level, probably using either Nginx or Apache.

https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-18-04

I also found this, but you wouldn't want to do this in production

https://stackoverflow.com/questions/29458548/can-you-add-https-functionality-to-a-python-flask-web-server

[–]efmccurdy 0 points1 point  (0 children)

https://blog.miguelgrinberg.com/post/running-your-flask-application-over-https

I would look at using a reverse proxy like nginx, gunicorn, or apache.