-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs to reference enviroment variable configuration
- Loading branch information
Showing
5 changed files
with
176 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Note that environment variables override any associated config setting from | ||
# a config file. | ||
|
||
# Replace YOUR_ACCOUNT_ID_HERE and YOUR_LICENSE_KEY_HERE with an active account | ||
# ID and license key combination associated with your MaxMind account. These | ||
# are available from https://www.maxmind.com/en/my_license_key. | ||
GEOIPUPDATE_ACCOUNT_ID="YOUR_ACCOUNT_ID_HERE" | ||
GEOIPUPDATE_LICENSE_KEY="YOUR_LICENSE_KEY_HERE" | ||
|
||
# Enter the edition IDs of the databases you would like to update. | ||
# Multiple edition IDs are separated by spaces. | ||
GEOIPUPDATE_EDITION_IDS="GeoLite2-Country GeoLite2-City" | ||
|
||
# The remaining settings are OPTIONAL. | ||
|
||
# The directory to store the database files. Defaults to $DATADIR | ||
# GEOIPUPDATE_DB_DIR="$DATADIR" | ||
|
||
# The server to use. Defaults to "updates.maxmind.com". | ||
# GEOIPUPDATE_HOST="updates.maxmind.com" | ||
|
||
# The proxy host name or IP address. You may optionally specify a | ||
# port number, e.g., 127.0.0.1:8888. If no port number is specified, 1080 | ||
# will be used. | ||
# GEOIPUPDATE_PROXY="127.0.0.1:8888" | ||
|
||
# The user name and password to use with your proxy server. | ||
# GEOIPUPDATE_PROXY_USER_PASSWORD="username:password" | ||
|
||
# Whether to preserve modification times of files downloaded from the server. | ||
# Defaults to "0". | ||
# GEOIPUPDATE_PRESERVE_FILE_TIMES=0 | ||
|
||
# The lock file to use. This ensures only one geoipupdate process can run at a | ||
# time. | ||
# Note: Once created, this lockfile is not removed from the filesystem. | ||
# Defaults to ".geoipupdate.lock" under the $GEOIPUPDATE_DB_DIR. | ||
# GEOIPUPDATE_LOCK_FILE="$GEOIPUPDATE_DB_DIR/.geoipupdate.lock | ||
|
||
# The amount of time to retry for when errors during HTTP transactions are | ||
# encountered. It can be specified as a (possibly fractional) decimal number | ||
# followed by a unit suffix. Valid time units are "ns", "us" (or "µs"), "ms", | ||
# "s", "m", "h". | ||
# Defaults to "5m" (5 minutes). | ||
# GEOIPUPDATE_RETRY_FOR="5m" | ||
|
||
# The number of parallel database downloads. | ||
# Defaults to "1". | ||
# GEOIPUPDATE_PARALLELISM=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# NAME | ||
|
||
GeoIP.env - Configuration environment variables for geoipupdate | ||
|
||
# SYNOPSIS | ||
|
||
These environment variables allow you to configure your `geoipupdate` | ||
program to download GeoIP2 and GeoLite2 databases. | ||
|
||
# DESCRIPTION | ||
|
||
Environment variables override any associated configuration that may | ||
have been set from the config file. | ||
|
||
## Required settings: | ||
|
||
`GEOIPUPDATE_ACCOUNT_ID` | ||
|
||
: Your MaxMind account ID. This can be overriden at runtime by the | ||
`--parallelism` command line argument. | ||
|
||
`GEOIPUPDATE_LICENSE_KEY` | ||
|
||
: Your case-sensitive MaxMind license key. | ||
|
||
`GEOIPUPDATE_EDITION_IDS` | ||
|
||
: List of space-separated database edition IDs. Edition IDs may consist | ||
of letters, digits, and dashes. For example, `GeoIP2-City` would | ||
download the GeoIP2 City database (`GeoIP2-City`). | ||
|
||
## Optional settings: | ||
|
||
`GEOIPUPDATE_DB_DIR` | ||
|
||
: The directory to store the database files. If not set, the default is | ||
DATADIR. This can be overridden at run time by the `-d` command line | ||
argument. | ||
|
||
`GEOIPUPDATE_HOST` | ||
|
||
: The host name of the server to use. The default is `updates.maxmind.com`. | ||
|
||
`GEOUPUPDATE_PROXY` | ||
|
||
: The proxy host name or IP address. You may optionally specify | ||
a port number, e.g., `127.0.0.1:8888`. If no port number is specified, | ||
1080 will be used. | ||
|
||
`GEOIPUPDATE_PROXY_USER_PASSWORD` | ||
|
||
: The proxy user name and password, separated by a colon. For instance, | ||
`username:password`. | ||
|
||
`GEOIPUPDATE_PRESERVE_FILE_TIMES` | ||
|
||
: Whether to preserve modification times of files downloaded from the | ||
server. This option is either `0` or `1`. The default is `0`. | ||
|
||
`GEOIPUPDATE_LOCK_FILE` | ||
|
||
: The lock file to use. This ensures only one `geoipupdate` process can run | ||
at a time. Note: Once created, this lockfile is not removed from the | ||
filesystem. The default is `.geoipupdate.lock` under the | ||
`GEOIPUPDATE_DB_DIR`. | ||
|
||
`GEOIPUPDATE_RETRY_FOR` | ||
|
||
: The amount of time to retry for when errors during HTTP transactions are | ||
encountered. It can be specified as a (possibly fractional) decimal number | ||
followed by a unit suffix. Valid time units are `ns`, `us` (or `µs`), `ms`, | ||
`s`, `m`, `h`. The default is `5m` (5 minutes). | ||
|
||
`GEOIPUPDATE_PARALLELISM` | ||
|
||
: The maximum number of parallel database downloads. The default is | ||
1, which means that databases will be downloaded sequentially. This can be | ||
overriden at runtime by the `--parallelism` command line argument. | ||
|
||
`VERBOSE` | ||
|
||
: Enable verbose mode. Prints out the steps that `geoipupdate` takes. This | ||
can be overriden at runtime by the `--verbose` command line argument. | ||
|
||
# SEE ALSO | ||
|
||
`geoipupdate`(1) | ||
`GeoIP.conf`(5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters