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?

Posted February 16, 2020 257 views
Node.jsDocker

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?

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.

×
1 answer

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

by Brennen Bearnes
Node.js is an open source JavaScript runtime environment for easily building server-side and networking applications. Node.js applications can be run at the command line but this guide focuses on running them as a service using PM2, so that they will automatically restart on reboot or failure, and can safely be used in a production environment.
Submit an Answer