大家好,
我正在 AWS ECS 上运行 Discourse。当我尝试运行应用程序时,浏览器中的控制台标签页因以下 URL 而失败。我是否遗漏了任何配置更改?
混合内容:页面“https://discuss-stage.tllms.com/finish-installation/register”通过 HTTPS 加载,但请求了一个不安全的网站图标“http://discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com/uploads/default/optimized/1X/_129430568242d1b7f853bb13ebea28b3f6af4e7_2_32x32.png”。该请求已被阻止;内容必须通过 HTTPS 提供。
在上述 URL 中,这是我的数据库端点 discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com。
我已在 database.yml 文件中提供了上述端点。
我使用 Docker 在 ECS 上部署了 Discourse。当我尝试访问应用程序时,浏览器网络请求从以下 URL 获取资源,而不是从 https://discuss-stage.tllms.com/ 获取。
这是我们用于 database.yml 文件的 RDS 端点 discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com。
混合内容:页面“https://discuss-stage.tllms.com/”通过 HTTPS 加载,但请求了一个不安全的网站图标“http://discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com/uploads/default/optimized/1X/_129430568242d1b7f853bb13ebea28b3f6af4e7_2_32x32.png”。该请求已被阻止;内容必须通过 HTTPS 提供。
拒绝加载脚本“https://discuss-stage.tllms.com/assets/browser-detect.js”,因为它违反了以下内容安全策略(CSP)指令:“script-src https://discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com/logs/ https://discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com/sidekiq/ https://discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com/mini-profiler-resources/ https://discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com/assets/ https://discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com/brotli_asset/ https://discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com/extra-locales/ https://discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com/highlight-js/ https://discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com/javascripts/ https://discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com/plugins/ https://discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com/theme-javascripts/ https://discourse-test.c0fbtc1q6bvm.ap-south-1.rds.amazonaws.com/svg-sprite/”。注意,未显式设置“script-src-elem”,因此使用“script-src”作为回退。