Python Flask Website, need help with certificates

Hello everyone,

Recently have been working on a project that hosts a website via Python Flask and I’m not sure the best way to go about getting a https certificate.

Usually, I could just use the tools available from LetsEncrypt that automagically get everything working via Apache Webserver, but this is pure python code running as a ‘server’.

Do you have any suggestions on how to go about this? The closest thing I’ve come too is running nginx in front of the python instance to handle the cert. But I feel there might be a better way that I’m not seeing.

Thanks ahead of time,

-geep

I’m using letsencrypt reverse proxy docker image. https://hub.docker.com/r/linuxserver/letsencrypt

Edit: gimme a shout if you need pointers on setting up subdomain or subfolder configuration.