{"id":13508104,"url":"https://github.com/kbrw/plug_forwarded_peer","last_synced_at":"2025-04-29T09:31:07.590Z","repository":{"id":47056679,"uuid":"38119005","full_name":"kbrw/plug_forwarded_peer","owner":"kbrw","description":"Very simple plug which reads `X-Forwarded-For` or `Forwarded` header according to rfc7239 and fill `conn.remote_ip` with the root client ip.","archived":false,"fork":false,"pushed_at":"2025-01-08T13:01:46.000Z","size":34,"stargazers_count":24,"open_issues_count":2,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-28T14:47:36.763Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kbrw.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-06-26T15:36:34.000Z","updated_at":"2025-01-08T13:01:50.000Z","dependencies_parsed_at":"2024-01-31T07:06:15.271Z","dependency_job_id":"5d9530df-c76e-4327-ba71-4283972a5834","html_url":"https://github.com/kbrw/plug_forwarded_peer","commit_stats":null,"previous_names":["awetzel/plug_forwarded_peer"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbrw%2Fplug_forwarded_peer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbrw%2Fplug_forwarded_peer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbrw%2Fplug_forwarded_peer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbrw%2Fplug_forwarded_peer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kbrw","download_url":"https://codeload.github.com/kbrw/plug_forwarded_peer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251473216,"owners_count":21595024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T02:00:48.052Z","updated_at":"2025-04-29T09:31:07.580Z","avatar_url":"https://github.com/kbrw.png","language":"Elixir","funding_links":[],"categories":["Framework Components"],"sub_categories":[],"readme":"Plug ForwardedPeer\n=================\n\nVery simple plug which reads `X-Forwarded-For` or `Forwarded` header according\nto rfc7239 and fill `conn.remote_ip` with the root client ip.\n\n## Installation\n\nAdd to your list of dependencies in mix.exs:\n\n```\ndef deps do\n  [\n    {:plug_forwarded_peer, \"~\u003e 0.2.0\"}\n  ]\nend\n```\n\n## Usage\n\nIn Phoenix:\n\n```elixir\ndefmodule MyApp.Endpoint do\n  use Phoenix.Endpoint, otp_app: :my_app\n\n  ...\n\n  plug PlugForwardedPeer\nend\n```\n\nOr in plain elixir:\n\n```elixir\ndefmodule MyPlug do\n  use Plug.Builder\n  plug PlugForwardedPeer\nend\n```\n\n# CONTRIBUTING\n\nHi, and thank you for wanting to contribute.\nPlease refer to the centralized informations available at: https://github.com/kbrw#contributing\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkbrw%2Fplug_forwarded_peer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkbrw%2Fplug_forwarded_peer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkbrw%2Fplug_forwarded_peer/lists"}