1

i dont know how to ask the question but here is my need. In my project i have :

  1. The frontend with reactJs.
  2. The backend with nodeJs, it uses https locally.

What are the steps to assure https connexion for the whole application after build ?

3
  • Usually, I have an NGINX service in front of both, frontend and backend (a reverse proxy). Commented Jun 17, 2021 at 20:42
  • And in production mode how do we proceed ? Commented Jun 17, 2021 at 21:04
  • That's in production. You can get a valid certificate from Let's encrypt. Commented Jun 17, 2021 at 21:05

1 Answer 1

1

To ensure HTTPs connection for the whole application you need an SSL certificate. Using Lets Encrypt you will be able to generate an SSL Certificate for your application.

Basically, certbot is a tool used to automate this process, if using NGINX using python3-certbot-nginx package will help in automatically generating an SSL certificate for your domain.

Note: I have only used NGINX & Certbot to achieve the same in my projects/apps.

Since in the context of MERN/Node.js applications,

I just recently wrote a blog about An in-depth guide to deploying your Node.js/MERN application to production using AWS with Custom Domain & SSL

You can refer to it, the steps can be reproduced in any Ubuntu/Linux instance.

Links to Blog:

More Ref Links: https://gist.github.com/bradtraversy/cd90d1ed3c462fe3bddd11bf8953a896

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.