Merge pull request #96 from leev/proxy-commands-readme
Add documentation for geoip2_proxy commands
This commit is contained in:
commit
a26c6beed7
1 changed files with 15 additions and 0 deletions
15
README.md
15
README.md
|
@ -136,3 +136,18 @@ This translates to:
|
|||
```
|
||||
$country_name "default=United States" source=$remote_addr country names en
|
||||
```
|
||||
|
||||
##### Additional Commands:
|
||||
These commands works the same as the original ngx_http_geoip_module documented here: http://nginx.org/en/docs/http/ngx_http_geoip_module.html#geoip_proxy.
|
||||
|
||||
However, if you provide the `source=$variable_with_ip` option on a variable, these settings will be ignored for that particular variable.
|
||||
|
||||
```
|
||||
geoip2_proxy < cidr >
|
||||
```
|
||||
Defines trusted addresses. When a request comes from a trusted address, an address from the "X-Forwarded-For" request header field will be used instead.
|
||||
|
||||
```
|
||||
geoip2_proxy_recursive < on | off >
|
||||
```
|
||||
If recursive search is disabled then instead of the original client address that matches one of the trusted addresses, the last address sent in "X-Forwarded-For" will be used. If recursive search is enabled then instead of the original client address that matches one of the trusted addresses, the last non-trusted address sent in "X-Forwarded-For" will be used.
|
||||
|
|
Loading…
Reference in a new issue