Adding HTTPS to dockerised flask application using Cloudflare

I have a dockerised Flask application that is started using gunicorn server. I.e. it exposes a HTTP endpoint on my server IP.

I’d like to add HTTPS instead of HTTP. Is that easily done with cloudflare? I’ve tried adding A to my DNS and add proxy but that only makes my HTTP endpoint work with the domain name and not HTTPS.

Cloudflare cannot add HTTPS to HTTP. Your application will need to support encryption natively.

This topic was automatically closed after 31 days. New replies are no longer allowed.