-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.lua
60 lines (59 loc) · 1.3 KB
/
constants.lua
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
local VERSION = "0.2.1"
return {
NAME = "kong",
VERSION = VERSION,
ROCK_VERSION = VERSION.."-1",
SYSLOG = {
ADDRESS = "kong-hf.mashape.com",
PORT = 61828
},
CLI = {
GLOBAL_KONG_CONF = "/etc/kong/kong.yml",
NGINX_CONFIG = "nginx.conf",
NGINX_PID = "kong.pid",
DNSMASQ_PID = "dnsmasq.pid",
},
DATABASE_NULL_ID = "00000000-0000-0000-0000-000000000000",
DATABASE_ERROR_TYPES = {
SCHEMA = "schema",
INVALID_TYPE = "invalid_type",
DATABASE = "database",
UNIQUE = "unique",
FOREIGN = "foreign"
},
DATABASE_TYPES = {
ID = "id",
TIMESTAMP = "timestamp"
},
HEADERS = {
SERVER = "Server",
VIA = "Via",
CONTENT_TYPE = "Content-Type",
PROXY_TIME = "X-Kong-Proxy-Time",
API_TIME = "X-Kong-Api-Time",
CONSUMER_ID = "X-Consumer-ID",
RATELIMIT_LIMIT = "X-RateLimit-Limit",
RATELIMIT_REMAINING = "X-RateLimit-Remaining"
},
CACHE = {
APIS = "apis",
PLUGINS_CONFIGURATIONS = "plugins_configurations",
BASICAUTH_CREDENTIAL = "basicauth_credentials",
KEYAUTH_CREDENTIAL = "keyauth_credentials"
},
AUTHENTICATION = {
QUERY = "query",
BASIC = "basic",
HEADER = "header"
},
RATELIMIT = {
PERIODS = {
"second",
"minute",
"hour",
"day",
"month",
"year"
}
}
}