简体   繁体   English

如何使用 node.js 的单实例弹性负载均衡器设置 HTTPS?

[英]How do I setup HTTPS with a Single Instance Elastic Load Balancer for node.js?

I have a .ebextensions/https-instance-securitygroup.config :我有一个.ebextensions/https-instance-securitygroup.config

Resources:
  sslSecurityGroupIngress: 
    Type: AWS::EC2::SecurityGroupIngress
    Properties:
      GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]}
      IpProtocol: tcp
      ToPort: 443
      FromPort: 443
      CidrIp: 0.0.0.0/0

However, my URL isn't https .但是,我的 URL 不是https How can I configure it to be https ?如何将其配置为https

you will need to create a file called "securelistener-alb.config" with the follwoing and add it to your extentions folder:您需要使用以下内容创建一个名为“securelistener-alb.config”的文件并将其添加到您的扩展文件夹中:

option_settings:
  aws:elb:listener:443:
    SSLCertificateId: arn:aws:acm:us-east-2:1234567890123:certificate/####################################
    ListenerProtocol: HTTPS
    InstancePort: 80

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Elastic Beanstalk 负载均衡器,是否可以通知我的 Node.js 实例它将被终止? - With an Elastic Beanstalk load balancer, can my Node.js instance be notified that it's GOING to be terminated? 如何正确运行Elastic Load Balancer和Node.js(HTTP和TCP)的Amazon EC2? - How to run Amazon EC2 with Elastic Load Balancer and Node.js (HTTP and TCP) correctly? 如何为Node.js配置AWS Elastic Load Balancer的健康检查 - How to configure AWS Elastic Load Balancer's heath check for Node.js 如何在AWS负载均衡器后面运行时强制node.js / express.js为HTTPS - How to force node.js/express.js to HTTPS when it is running behind an AWS load balancer 如何在弹性均衡器之类的负载均衡器后面设置双http和https服务器 - How to setup dual http and https servers behind a load balancer like elastic balancer 如何使用 Classic Load Balancer 配置 Elastic Beanstalk NodeJS 应用程序以使用 HTTPS? - How do I configure an Elastic Beanstalk NodeJS application with a Classic Load Balancer to use HTTPS? 我可以使用Google负载均衡器将负载均衡到同一GCE VM实例中的两个或多个node.js服务器吗? - Can I load balance to two or more node.js servers in the same GCE VM instance using Google Load Balancer? 413 请求实体太大 - Elastic Beanstalk + 负载均衡器 + Node.js 应用程序 - 413 Request Entity Too Large - Elastic Beanstalk + Load Balancer + Node.js application 如何在Amazon Load Balancer上故障转移Node.js计时器? - How to fail over node.js timer on amazon load balancer? 如何将 nginx 用于负载均衡器 -simple node.js 和 docker compose? - How can I use nginx for load balancer -simple node.js with docker compose?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM