title: How do I make an SSL-secured reverse proxy on Nginx with Let's Encrypt?
body: <p><br>
  I have a RestAPI that works on Node.js and it's proxied through Nginx with the following configuration (private parts have been hidden):</p>
  
  <pre><code>   server {
  
      listen 80;
      server_name mywebsitestuff.com www.mywebsitestuff.com;
  
      location / {
          proxy_pass http://serverip:25000;
          proxy_http_version 1.1;
          proxy_set_header Upgrade $http_upgrade;
          proxy_set_header Connection 'upgrade';
          proxy_set_header Host $host;
          proxy_cache_bypass $http_upgrade;
      }
  }
  </code></pre>
  
  <p>I want this API work with a Let's Encrypt SSL Certificate, how can I do it?<br>
  <em>Thanks</em></p>