在Elastic Beanstalk上强制HTTPS单容器泊坞窗应用程序

我在Elastic Beanstalk上创build了一个单容器Docker应用程序,并将我的ACM SSL证书链接到与我的EB实例关联的Load Balancer。

HTTP和HTTPS请求到我的网站都工作,我试图强制HTTPredirect到HTTPS。

我已经阅读了无数的在线指南,但我仍然努力工作。 我已经尝试了所有的步骤: http : //adamjstevenson.com/tutorials/2017/02/02/configuring-and-forcing-https-for-aws-elastic-beanstalk.html 。 我什至SSH'ed到EC2实例,并手动运行bash命令,但nginx仍然采取HTTP请求。

请指教。