hello I have problems to see my endpoint working with the ssl certificate, I have managed to make the certificate work but with https://sub.name.com, clone my github repository and install my project successfully under 1xx.2xx.xx .xx: 3002 / xxx I can see that it works correctly, but https://sub.name.com:3002/xxxx 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.
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!
Hello,
What I would suggest here is to use Nginx as a reverse proxy, so that way you could access your application directly on https://sub.name.com 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;
server_name sub.name.com;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:3002;
}
}
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.