Using LetsEncrypt with Phoenix (behind Nginx). How to make this more optimal?

I also have a doubt…
What about the case when I want the SSL certificate to go with phoenix ?