I have a dockerized python flask application, and an ngnix docker instance in front acting as a forward proxy. Both containers are deployed on AWS EC2, and using a Route53 DNS entry, traffic is routed to the nginx which then passes over the request to the python flask server.
I now want to switch to https, and discovered here that deploying https using Letsencrypt in docker is non trivial and frankly, quite messy.
I am considering putting an AWS loadbalancer in front of the whole setup, and enabling https on the load balancer instead. This would imply load balancer talks to ngnix, and ngnix passes requests over to Python flask.
Is there a better way to do this? Is the nginx now superfluous? Do you foresee issues with this setup?