【发布时间】:2020-10-15 05:29:33
【问题描述】:
过去一周我一直在努力学习 AWS 以将我的 React - Django 应用程序部署到 AWS。我的反应堆栈已成功部署到 AWS Amplify,一点时间都没有。将我的 Django 堆栈部署到 Elastic Beanstalk 后,我偶然发现了以下错误:
xhr.js:178 Mixed Content: The page at 'https://amplify.url' was loaded over HTTPS,
but requested an insecure XMLHttpRequest endpoint 'http://api.elasticbeanstalk.com/'.
This request has been blocked; the content must be served over HTTPS.
我的问题是,如何为我的 django eb 应用程序配置 https?
我为我的前端购买了一个域,但我是否还必须为我的后端 api 购买一个域,或者我是否使用子域?我无法找到有关最佳实践的说明以及如何实施它们。如果有人能给我配置我的弹性 beantalk 负载均衡器的建议,那就太好了,非常感谢!
【问题讨论】:
标签: django amazon-web-services dns amazon-elastic-beanstalk load-balancing