plug_cloudflare

This Elixirplug parses Cloudflare's CF-Connecting-IP HTTP request header into Plug.Conn's remote_ip field.

Setup

To use this plug in your projects, edit your mix.exs file and add the project as a dependency:

defp deps do
[
{ :plug_cloudflare, "~> 1.0.0" }
]
end

Usage

pipeline :browser do
plug Plug.Cloudflare
end

License

Apache License, Version 2.0