Popularity
4.0
Declining
Activity
0.0
Declining
21
3
10

Monthly Downloads: 110
Programming language: Elixir
License: Apache License 2.0
Latest version: v1.2.1

plug_cloudflare alternatives and similar packages

Based on the "Framework Components" category.
Alternatively, view plug_cloudflare alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of plug_cloudflare or a related project?

Add another 'Framework Components' Package

README

plug_cloudflare

Inspired by mod_cloudflare, this Elixir plug parses CloudFlare's CF-Connecting-IP HTTP request header into Plug.Conn's remote_ip field.

Hex.pm Version Build Status

Setup

To use plug_cloudflare in your projects, edit your mix.exs file and add plug_cloudflare as a dependency:

defp deps do
  [
    {:plug_cloudflare, ">= 1.2.0"}
  ]
end

Usage

This plug should be one of the first ones in your pipeline. It is therefore recommended to put it in the endpoint instead of a pipeline.

defmodule MyApp.Endpoint do
  use Phoenix.Endpoint, otp_app: my_app

  plug Plug.CloudFlare

  # Other plugs omitted for clarity

end

Contribution Process

This project uses the C4.1 process for all code changes.

"Everyone, without distinction or discrimination, SHALL have an equal right to become a Contributor under the terms of this contract."

License

Apache License, Version 2.0


*Note that all licence references and agreements mentioned in the plug_cloudflare README section above are relevant to that project's source code only.