forked from CNSRE/ABTestingGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
40 lines (33 loc) · 1.03 KB
/
init.lua
File metadata and controls
40 lines (33 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
local modulename = "abtestingInit"
local _M = {}
_M._VERSION = '0.0.1'
_M.redisConf = {
["uds"] = ngx.var.redis_uds ,
["host"] = ngx.var.redis_host,
["port"] = ngx.var.redis_port,
["poolsize"] = ngx.var.redis_pool_size,
["idletime"] = ngx.var.redis_keepalive_timeout ,
["timeout"] = ngx.var.redis_connect_timeout,
["dbid"] = ngx.var.redis_dbid,
}
_M.divtypes = {
["iprange"] = 'ipParser',
["uidrange"] = 'uidParser',
["uidsuffix"] = 'uidParser',
["uidappoint"] = 'uidParser',
}
_M.prefixConf = {
["policyLibPrefix"] = ngx.var.policy_prefix,
["runtimeInfoPrefix"] = ngx.var.runtime_prefix,
["domainname"] = ngx.var.server_name,
}
_M.divConf = {
["default_backend"] = ngx.var.default_backend;
["shdict_expire"] = ngx.var.shdict_expire;
}
_M.cacheConf = {
['timeout'] = ngx.var.lock_expire,
['runtimeInfoLock'] = ngx.var.rt_cache_lock,
['upstreamLock'] = ngx.var.up_cache_lock,
}
return _M