AWS SSL for EC2 Instance Without Load Balancing - NodeJS

Is it possible to start an EC2 instance while listening port 443, without load balancer? I am trying right now in my application Node.JS, but it does not work when I call the page using https://. However, if I installed it in port 80, everything will be fine with http://.

I worked on this before with load balancerand route53, but I no longer want to pay $ 18 / mo for ELB, especially when I have only one server.

thanks for the help

+4
source share
4 answers

, , , , ELB.

:

  • nginx NodeJS.
  • SSL nginx.

    - , ssh'ing , .

    - ( , beanstalk?), nginx, .

  • , nginx 443 ( )
  • EC2, , , ( 80/ 443)
+3

? , . , SSL ELB, ELB. SSL- EC2. AWS ACM SSL ELB CloudFront. - , SSL .

+2

:

t2.medium.

nginx ?

0

( ) :

  • nginx 80 ( node.js 3000, )
  • pm2 node.js( )
  • keymetrics.io
  • Nodejs v6.9.3 boron/lts ( NVM)
  • Mongodb 3.2 WiredTiger Engine (Compose.io)
  • Amazon EC2 (Amazon Linux Ubuntu)

. SSL .

0

Source: https://habr.com/ru/post/1660143/


All Articles