Commit graph

34 commits

Author SHA1 Message Date
Andrei Belov
26399de025
Move MMDB auto-reloading to log phase
Previous approach could lead to SIGSEGV while logging requests
with log format containing variables produed by geoip2 module.
2018-10-10 13:00:25 +03:00
Lee
cbea8fc505
Merge pull request #59 from defanator/defanator-fix-auto_reload
Ensure that database structures are zero-initialized
2018-10-02 13:01:18 +01:00
Andrei Belov
38cea8a516
Ensure that database structures are zero-initialized
This should fix #58.
2018-10-01 15:30:11 +03:00
Lee
d6e529a9ab
Merge pull request #54 from leev/auto_reload
Add support for auto reloading the database if it has changed
2018-07-02 22:07:03 +01:00
Lee Valentine
39a8abfa60 Add support for auto reloading the database if it has changed 2018-07-02 21:47:02 +01:00
Lee
7eaa956e61
Merge pull request #53 from leev/metadata
Add support for retrieving mmdb metadata, specifically build_epoch
2018-06-28 01:07:50 +01:00
Lee Valentine
4674ba7c9c Add support for retrieving mmdb metadata, specifically build_epoch 2018-06-28 01:06:22 +01:00
Lee
f4364b50b4
Merge pull request #50 from qlees/relative_path
geoip2 directive support relative path as first argument
2018-05-14 20:13:51 +01:00
qlee
6fac846f3d geoip2 directive support relative path as first argument 2018-05-02 18:32:31 +08:00
Lee
e39fdd7bf8 Update README.md 2016-11-03 23:48:10 +00:00
Lee
1c15cd710b Merge pull request #35 from defanator/defanator-stream-support
Added stream support for recent nginx versions (>= 1.11.2)
2016-11-03 12:03:54 +00:00
Andrei Belov
4a0ca82b79 Added stream support
nginx/1.11.2 or newer is required in order to get geoip2 support
within stream {} context.
2016-10-27 18:09:39 +03:00
Lee Valentine
9d11f35986 Added optional source=<variable> setting to allow lookups on
IPs in custom variables.  Defaults to client ip if not set.
2016-06-19 23:34:12 +01:00
Lee Valentine
2f9ee969c8 Moved break out of FORMAT macro 2016-06-17 10:32:55 -07:00
Lee Valentine
9ebca76996 Added ngx_feature_test to config to ensure it's reset if previous modules set it 2016-06-17 10:31:50 -07:00
Lee
1c2ab3a33b Merge pull request #27 from guizmaii/master
Correct Nginx download link
2016-05-13 15:00:59 +01:00
Jules Ivanic
fc41d450bc Correct Nginx download link 2016-05-11 13:59:16 +02:00
Lee Valentine
0373635e22 Feature: nginx dynamic module support 2016-02-10 20:43:08 +00:00
Lee
eb8a26df11 Merge pull request #13 from oschwald/all-data-types
Support all MaxMind DB data types
2014-12-13 22:21:25 +00:00
Gregory Oschwald
21ffc356d2 Use Nginx's non-standard printf format spec 2014-12-08 16:18:21 -08:00
Gregory Oschwald
54e089c3a1 Support all MaxMind DB data types 2014-12-06 13:42:20 -08:00
Lee Valentine
bd530bc5f3 Added support for using multiple maxmind databases 2014-04-26 11:26:37 +01:00
Lee
a977175baf Merge pull request #4 from jobseekerltd/master
Retrieves ui32_t entry
2014-04-24 08:45:56 +01:00
JIRA DVCS
dc49f10d92 Fix indentation 2014-04-23 22:22:02 +10:00
Lee Valentine
a302e5f822 Updated not_found 2014-03-19 21:47:03 +00:00
Jiale Zhi
2cefb47cf3 Remove printf line 2014-03-19 14:32:04 -07:00
Jiale Zhi
80803760cb Support setting default variable value 2014-03-19 12:58:41 -07:00
Cuong Hoang
22e52ffad1 Retrieves ui32_t entry 2014-03-18 09:40:28 +11:00
Lee Valentine
48435ecb0f Added geolite2 download information 2014-03-13 12:46:27 +00:00
Lee Valentine
deee646296 Updated README 2014-03-13 12:39:00 +00:00
Lee Valentine
d4314bb82e Updated README 2014-03-11 10:19:43 +00:00
Lee Valentine
d0adfced46 Fixed typo 2014-03-11 10:15:11 +00:00
Jiale Zhi
a2d7a49107 Fix a compilation error. Remove spaces. 2014-03-10 17:20:21 -07:00
Lee Valentine
bb3e006354 Initial commit 2014-01-30 23:00:34 +00:00