Sti*_*cky 6 ssl ruby-on-rails amazon-ecs ruby-on-rails-6
我正在尝试在 AWS ECS 上设置 Rails 并进行 HTTPS 访问。当我的 ECS 服务部署时,这些是日志:
=> Rails 6.1.3.2 application starting in production
=> Booting Puma
* Listening on http://0.0.0.0:3000
* PID: 1
* Environment: production
* Max threads: 5
* Min threads: 5
* Puma version: 5.3.2 (ruby 3.0.1-p64) ("Sweetnighter")
Puma starting in single mode...
* Listening on http://0.0.0.0:3000
Use Ctrl-C to stop
2021-08-06 06:21:21 +0000 HTTP parse error, malformed request:
#<Puma::HttpParserError: Invalid HTTP format, parsing fails. Are you trying to open an SSL connection to a non-SSL Puma?>
Run Code Online (Sandbox Code Playgroud)
我相信健康检查正在击中容器并失败。我不知道为什么会发生这种情况。我已经config.force_ssl = true在我的environments/production.rb. 对我所缺少的有什么建议吗?
我正在使用Rails 6.1.3.2和ruby 3.0.1。谢谢!
| 归档时间: |
|
| 查看次数: |
903 次 |
| 最近记录: |