我已附上AWS ACM提供的SSL证书给北草坪会议大楼。北草坪会议大楼将向nginx入口转发请求。Nginx给了我以下错误。The plain HTTP request was sent to HTTPS port。我在nginx中设置了以下注释。
我在nginx入口服务中设置了以下注释,该服务运行在北草坪会议大楼后面。
发布于 2022-01-12 07:55:04
对于此错误:
普通HTTP请求被发送到HTTPS端口
更改Nginx服务中的端口配置,例如,HTTPS部分中的目标端口应该是http而不是https。
ports:
- name: https
**targetPort: http**这里是供参考的注释
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "60"
service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: "true"
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:ap-southeast-1:xxxxxxx:certificate/8991ftt8-69e0-4e7d-1164-yy0aae19da90v
service.beta.kubernetes.io/aws-load-balancer-type: nlbhttps://stackoverflow.com/questions/70677589
复制相似问题