I would like to ask about how to configure Nodejs (backend/server) to accept HTTPS request from client side (Front end).
What we did.
- Registered domain name in AWS.
- List item
- Requested SSL in ACM.
- Create bucket in S3, and store our front-end code (angular 5) inside of it.
- Created distribution in cloud front and put our custom ssl there and connect to bucket in S3.
- We set up also ec2 instance and store our back-end code (node js) there.
- In our front end code we connect to the ip of our ec2 instances so that we can connect to backend.
The problem:
- The front-end can't access the backend in ec2 instances because the front end is https and the backend is http (we don't know how to configure it from http to https in AWS EC2 Instance).
- Do you know how to setup web app in aws which front end and backend code is separated?
- What did we missed?