add nginx module support

This commit is contained in:
lionsoul 2019-08-22 10:35:26 +08:00
parent f11b8096e3
commit 5c1394a4f5
5 changed files with 4 additions and 5 deletions

3
binding/nginx/README.md Normal file
View File

@ -0,0 +1,3 @@
# 说明
- 编译本模块时,请手动链接对../c/ip2region.c文件的依赖。

View File

@ -5,7 +5,7 @@
extern "C" {
#endif
#include "../../binding/c/ip2region.h"
#include "../c/ip2region.h"
typedef struct ngx_ip2region_conf_s {
ngx_str_t db_file;

View File

@ -1,4 +0,0 @@
#说明
- 本模块依赖[ip2region](https://github.com/lionsoul2014/ip2region/tree/master/binding/c)项目,需要手动下载ip2region.c 和 ip2region.h文件后进行编译