{"id":13582130,"url":"https://github.com/negasus/traefik-plugin-ip2location","last_synced_at":"2026-01-23T05:31:23.386Z","repository":{"id":57533657,"uuid":"280428080","full_name":"negasus/traefik-plugin-ip2location","owner":"negasus","description":"traefik-plugin-ip2location","archived":false,"fork":false,"pushed_at":"2020-07-20T07:08:09.000Z","size":933,"stargazers_count":10,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T13:37:33.029Z","etag":null,"topics":["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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/negasus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-17T13:13:24.000Z","updated_at":"2022-11-27T03:00:10.000Z","dependencies_parsed_at":"2022-09-26T18:21:13.542Z","dependency_job_id":null,"html_url":"https://github.com/negasus/traefik-plugin-ip2location","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/negasus/traefik-plugin-ip2location","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negasus%2Ftraefik-plugin-ip2location","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negasus%2Ftraefik-plugin-ip2location/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negasus%2Ftraefik-plugin-ip2location/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negasus%2Ftraefik-plugin-ip2location/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/negasus","download_url":"https://codeload.github.com/negasus/traefik-plugin-ip2location/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negasus%2Ftraefik-plugin-ip2location/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28680747,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T04:33:33.518Z","status":"ssl_error","status_checked_at":"2026-01-23T04:33:30.433Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-plugin"],"created_at":"2024-08-01T15:02:26.610Z","updated_at":"2026-01-23T05:31:23.369Z","avatar_url":"https://github.com/negasus.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# ip2location\n\nPlugin for getting information from ip2location database and pass it to request headers\n\n## Configuration\n\nTo configure this plugin you should add its configuration to the Traefik dynamic configuration as explained [here](https://docs.traefik.io/getting-started/configuration-overview/#the-dynamic-configuration).\nThe following snippet shows how to configure this plugin with the File provider in TOML and YAML: \n\nStatic:\n\n```yaml\nexperimental:\n  pilot:\n    token: xxx\n\n  plugins:\n    ip2location:\n      modulename: github.com/negasus/traefik-plugin-ip2location\n      version: v0.1.0\n```\n\nDynamic:\n\n```yaml\nhttp:\n  middlewares:\n   my-plugin:\n      plugin:\n        ip2location:\n          filename: /path/to/database.bin\n          fromHeader: X-User-IP # optional\n          disableErrorHeader: false\n          headers:\n            CountryShort: X-GEO-CountryShort\n            CountryLong: X-GEO-CountryLong\n            Region: X-GEO-Region\n            City: X-GEO-City\n            Isp: X-GEO-Isp\n            Latitude: X-GEO-Latitude\n            Longitude: X-GEO-Longitude\n            Domain: X-GEO-Domain\n            Zipcode: X-GEO-Zipcode\n            Timezone: X-GEO-Timezone\n            Netspeed: X-GEO-Netspeed\n            Iddcode: X-GEO-Iddcode\n            Areacode: X-GEO-Areacode\n            Weatherstationcode: X-GEO-Weatherstationcode\n            Weatherstationname: X-GEO-Weatherstationname\n            Mcc: X-GEO-Mcc\n            Mnc: X-GEO-Mnc\n            Mobilebrand: X-GEO-Mobilebrand\n            Elevation: X-GEO-Elevation\n            Usagetype: X-GEO-Usagetype\n```\n\n### Options\n\n#### Filename (`filename`)\n\n*Required*\n\nThe path to ip2location database file (in binary format)\n\n#### FromHeader (`fromHeader`)\n\n*Default: empty*\n\nIf defined, IP address will be obtained from this HTTP header\n\n#### DisableErrorHeader (`disableErrorHeader`)\n\n*Default: false*\n\nIf `false`, any errors will be placed to the `X-IP2LOCATION-ERROR` http header. Set to `true` for disable. \n\n#### Headers (`headers`)\n\n*Default: empty*\n\nDefine the HTTP Header name if you want to pass any of the parameters\n\n### Errors\n\nIf any error occurred, this error will be placed to X-IP2LOCATION-ERROR header","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnegasus%2Ftraefik-plugin-ip2location","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnegasus%2Ftraefik-plugin-ip2location","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnegasus%2Ftraefik-plugin-ip2location/lists"}