Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/negasus/traefik-plugin-geoip2
Traefik2 Plugin GeoIP2
https://github.com/negasus/traefik-plugin-geoip2
Last synced: 4 months ago
JSON representation
Traefik2 Plugin GeoIP2
- Host: GitHub
- URL: https://github.com/negasus/traefik-plugin-geoip2
- Owner: negasus
- Created: 2020-07-15T09:52:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-20T16:29:16.000Z (over 4 years ago)
- Last Synced: 2024-06-22T08:36:21.957Z (6 months ago)
- Language: Go
- Homepage:
- Size: 2.97 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Traefik Plugin GeoIP2
> plugin in development, also see https://github.com/negasus/traefik-plugin-ip2location
Add a request header with Country ISO code detected by IP with MaxMind GeoIP database
## Configuration
### `Filename (string) required`
Path to the database file
### `FromHeader (string) (default: empty)`
By default, plugin obtain an IP address from a request.RemoteAddr.
If you want to get IP address from the HTTP header, you could define this option.### `CountryHeader (string) (default: 'X-Country')`
HTTP Header name for place the Country code
## Other
If an any error occurred, Country header will be empty.