该介绍目前仅提供英文版本。
Overview
cloudflare-rails configures Rails for Cloudflare so that request.remote_ip and request.ip both return the real visitor IP instead of a Cloudflare address. It also adds a #cloudflare? method to Rack::Request.
Compatibility
The current version needs railties, activesupport and actionpack 7.2 or newer. The README has a version chart for older Rails releases, back to Rails 4.2.