{"id":22314518,"url":"https://github.com/desuuuu/traefik-real-ip-plugin","last_synced_at":"2025-06-24T10:40:45.510Z","repository":{"id":64411537,"uuid":"575489650","full_name":"Desuuuu/traefik-real-ip-plugin","owner":"Desuuuu","description":"Traefik plugin to retrieve client IPs.","archived":false,"fork":false,"pushed_at":"2023-08-29T15:55:41.000Z","size":16,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T04:48:47.131Z","etag":null,"topics":["traefik","traefik-plugin"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Desuuuu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-07T16:18:42.000Z","updated_at":"2024-03-21T15:46:23.000Z","dependencies_parsed_at":"2023-01-25T21:01:03.589Z","dependency_job_id":null,"html_url":"https://github.com/Desuuuu/traefik-real-ip-plugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desuuuu%2Ftraefik-real-ip-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desuuuu%2Ftraefik-real-ip-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desuuuu%2Ftraefik-real-ip-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desuuuu%2Ftraefik-real-ip-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Desuuuu","download_url":"https://codeload.github.com/Desuuuu/traefik-real-ip-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228006260,"owners_count":17854996,"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":["traefik","traefik-plugin"],"created_at":"2024-12-03T22:10:17.595Z","updated_at":"2024-12-03T22:10:18.072Z","avatar_url":"https://github.com/Desuuuu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# traefik-real-ip-plugin\n\n[![Tag Badge]][Tag] [![Go Version Badge]][Go Version] [![Go Report Card Badge]][Go Report Card]\n\nTraefik plugin to retrieve client IPs. Supports retrieving the IP from and writing the result to arbitrary headers.\n\nIf a depth or a list of excluded CIDRs is specified, the header is parsed with the same format as the `X-Forwarded-For` header (`1.2.3.4, 1.2.3.5, ...`). Otherwise, the entire header is parsed as an IP.\n\nThe first valid IP retrieved is written to the configured destination headers.\n\n## Traefik static configuration\n\n```yaml\nexperimental:\n  plugins:\n    realip:\n      moduleName: github.com/Desuuuu/traefik-real-ip-plugin\n      version: v1.1.0\n```\n\n## Dynamic configuration\n\n### Depth\n\n```yaml\nhttp:\n  middlewares:\n    realip:\n      plugin:\n        realip:\n          retrievers:\n            - header: X-Forwarded-For\n              depth: 1\n          headers:\n            - X-Real-IP\n```\n\n### Excluded CIDRs\n\n```yaml\nhttp:\n  middlewares:\n    realip:\n      plugin:\n        realip:\n          retrievers:\n            - header: X-Forwarded-For\n              excludedCIDRs:\n                - \"203.0.113.195/24\"\n          headers:\n            - X-Real-IP\n```\n\n[Tag]: https://github.com/Desuuuu/traefik-real-ip-plugin/tags\n[Tag Badge]: https://img.shields.io/github/v/tag/Desuuuu/traefik-real-ip-plugin?sort=semver\n[Go Version]: /go.mod\n[Go Version Badge]: https://img.shields.io/github/go-mod/go-version/Desuuuu/traefik-real-ip-plugin\n[Go Report Card]: https://goreportcard.com/report/github.com/Desuuuu/traefik-real-ip-plugin\n[Go Report Card Badge]: https://goreportcard.com/badge/github.com/Desuuuu/traefik-real-ip-plugin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesuuuu%2Ftraefik-real-ip-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdesuuuu%2Ftraefik-real-ip-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesuuuu%2Ftraefik-real-ip-plugin/lists"}