ssl does not work on my endpoint my domain:3002/email

hello I have problems to see my endpoint working with the ssl certificate, I have managed to make the certificate work but with, clone my github repository and install my project successfully under 1xx.2xx.xx .xx: 3002 / xxx I can see that it works correctly, but is my problem I have followed the digital ocean setup to install Nginx and my Let’s Encrypt ssl certificate in Ubuntu 18.04. I have deleted my droplets created everything again and nothing that works for my endpoint not if I am missing something

My project is with nestJS.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


What I would suggest here is to use Nginx as a reverse proxy, so that way you could access your application directly on rather than having to specify your port at the end.

That way you will be able to use Let’s Encrypt together with Nginx.

Your Nginx Server block would look something like thins:

server {
    listen 80;

    location / {
        proxy_set_header   X-Forwarded-For $remote_addr;
        proxy_set_header   Host $http_host;

Then you could use certbot to issue your Let’s Encrypt SSL, it should also automatically create the Nginx Server block for port 443 for you as well, you can follow the guide here:

Hope that this helps! Regards, Bobby