I am experimenting with LXD 3.0 containers in my host Ubuntu 18.04 server. I have HAproxy running in one LXD container. And I have my main app running in nodejs in another LXD container.
My confusion is where and how do I install Letsencrypt cert to secure (SSL) the nodejs app? Is the cert only installed in the host? In HAproxy? In the nodejs? Or all three?
BTW, I access the nodejs by browsing to a subdomain (ex: nodejs.mydomain.com) HAproxy directs to the nodejs app container running on a specific port 9001.
Your comment appreciated.