title: How to setup docker nextcloud to use SSL
body: <p>I have successfully installed and am running Nextcloud in docker. The installation uses LetsEncrypt to generate the certificates and runs without problems when I access it using HTTP.</p>
  <p>When I attempt to use HTTPS, however, I am getting 500 Internal Server Error.</p>
  <p>Researching this problem, I have learned that by default the nginx proxy container is not actually configured to use HTTPS (based on various nextcloud descriptions I have read online). Apparently what has to be done is to configure it to be able to use SSL.</p>
  <p>Trouble is, there is no step by step procedure given for doing this.</p>
  <p>Just about everywhere I look I am finding plenty of tutorials and instructions that include “set up letsencrypt” or &quot;place certs in using certbot or other methods. This is nice but the docker-compose.yml file I used already sets up the certs! What I need is some clear instructions on how to configure the nginx-proxy to use SSL. I have been unable to find such instructions.</p>
  <p>Can someone tell me how to properly configure the nginx-proxy container to use SSL? Or failing that, can someone point me to some clear instructions for properly configuring it for SSL?</p>