Report this

What is the reason for this report?

Hello, i have dockerized nodejs app hosted on ubuntu. Its rest api and i need https connection to use it in android app. How can i do this?

Posted on February 16, 2020

Hello, i have dockerized nodejs app hosted on ubuntu. Its rest api and i need https connection to use it in android app. How can i do this?



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!

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.

Hello.

What I could suggest here is adding Nginx as a reverse proxy for your Node.js application. You can take a look at this tutorial here on how to setup the Nginx proxy for your Node application:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04#set-up-nginx-as-a-reverse-proxy-server

That way you will be able to install a Let’s Encrypt SSL certificate for your Nginx service. Note that you would need a domain name in order to be able to issue the Let’s Encrypt certificate.

Hope that this helps! Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.