ruby-on-rails - 有人找到了让 Heroku 与 Cloudflare Railgun 一起工作的方法吗?

标签 ruby-on-rails heroku cloudflare

根据:https://github.com/iphoting/heroku-buildpack-php-tyler/issues/21

Cloudflare needs raw in-bound port 2408 into the dyno and it is still not possible with the new dyno networking model.



有人找到方法了吗?有任何想法吗?

最佳答案

您始终可以在单独的机器(例如便宜的 VPS)上安装和运行 Railgun,然后在您的站点上启用该 Railgun。您需要确保带有 Railgun 的 VPS 靠近 Heroku 将托管您的源的任何地方,以最大限度地减少从 VPS 到您的源的延迟。

所以有了这个设置它会去:

client <--> Railgun on a VPS <--> Heroku origin

它不会是完美的解决方案,您希望获得 85% 的性能优势,而不是获得 100% 的性能。

这并不理想,但至少是一种选择。我在我使用的几个 Heroku 应用程序/站点上都有这种设置。我在 Ramnode 上有一个 VPS,为这些 Heroku 应用程序/站点提供 Railgun:
https://request.canhazip.com/
https://ip.canhazip.com/
https://httpbin.canhazip.com/

附言我在 CloudFlare 工作。

关于ruby-on-rails - 有人找到了让 Heroku 与 Cloudflare Railgun 一起工作的方法吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22669769/

相关文章:

ruby-on-rails - Heroku 运行 rake db :seed gives expecting keyword_end

cloudflare - 访问 Cloudflare Workers 站点的压缩数据

javascript - 为 Rails 设置 JavaScript 格式

ruby-on-rails - 将 RestClient SSL 版本设置为 SSLv3

ruby-on-rails - ActionMailer - 如何从 s3 添加附件

deployment - 将 Publify 博客部署到 Heroku 导致应用程序错误

spring - 如何设置 Spring/Heroku/postgres SSL 数据源

ruby-on-rails - 无法打开 CSV 文件 : no implicit conversion of StringIO into String

docker - Docker群和Cloudflare DNS

cloudflare worker 重写主机头