Question

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?

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?


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.

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