-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.json
278 lines (277 loc) · 9.3 KB
/
config.example.json
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
{
"esi_url": "https://esi.evetech.net",
"domain": "yourdomain.com",
"email": "[email protected]",
"max_in_flight": 20,
"min_cache_pct": 5,
"mariadb": {
"user": "karkinos",
"pass": "mypasswordissupersecret"
},
"oauth": {
"Discord": {
"clientID": "ffff_SNIP_ffff",
"clientSecret": "ffff_SNIP_ffff",
"authToken" : "ffff_ base64'd concat of clientID:clientSecret _ffff",
"callback": "https://yourdomain.com/sso",
"redirect": "https://yourdomain.com/",
"authURL": "https://discordapp.com/oauth2/authorize/",
"refererURL": "https://discordapp.com/oauth2/authorize/",
"tokenURL": "https://discordapp.com/api/oauth2/token",
"verifyURL": "https://discordapp.com/api/users/@me",
"revokeURL": "https://discordapp.com/api/oauth2/token/revoke",
"apiBase" : "https://discordapp.com/api"
},
"CCP": {
"clientID": "ffff_SNIP_ffff",
"clientSecret": "ffff_SNIP_ffff",
"authToken" : "ffff_ base64'd concat of clientID:clientSecret _ffff",
"callback": "https://yourdomain.com/sso",
"redirect": "https://yourdomain.com/",
"authURL": "https://login.eveonline.com/oauth/authorize/",
"refererURL": "https://login.eveonline.com/oauth/authorize/",
"tokenURL": "https://login.eveonline.com/oauth/token",
"verifyURL": "https://login.eveonline.com/oauth/verify",
"revokeURL": "https://login.eveonline.com/oauth/revoke",
"apiBase" : "https://esi.evetech.net"
}
},
"tables":{
"contracts": {
"db": "karkinos",
"name": "contracts",
"primary_key": "contract_id",
"changed_key": "status+0",
"job_key": "source",
"keys": {
"acceptor_id": "acceptor_id",
"assignee_id": "assignee_id",
"date_accepted_hour": "date_accepted_hour",
"date_completed_hour": "date_completed_hour",
"date_expired_hour": "date_expired_hour",
"date_issued_hour": "date_issued_hour",
"end_location_id": "end_location_id",
"issuer_corporation_id": "issuer_corporation_id",
"issuer_id": "issuer_id",
"owner": "owner",
"source": "source",
"start_location_id": "start_location_id",
"status": "status",
"type": "type"
},
"column_order": [
"source",
"owner",
"acceptor_id",
"assignee_id",
"availability",
"buyout",
"collateral",
"contract_id",
"date_accepted",
"date_completed",
"date_expired",
"date_issued",
"days_to_complete",
"end_location_id",
"for_corporation",
"issuer_corporation_id",
"issuer_id",
"price",
"reward",
"start_location_id",
"status",
"title",
"type",
"volume"
],
"duplicates": "ON DUPLICATE KEY UPDATE acceptor_id=VALUES(acceptor_id),date_accepted=VALUES(date_accepted),date_completed=VALUES(date_completed),status=VALUES(status)",
"proto": [
"source bigint(20) NOT NULL",
"owner bigint(20) NULL",
"position int(11) NOT NULL DEFAULT -1000",
"acceptor_id bigint(20) DEFAULT NULL",
"assignee_id bigint(20) NOT NULL",
"availability enum('public','personal','corporation','alliance') DEFAULT NULL",
"buyout decimal(22,2) DEFAULT NULL",
"collateral decimal(22,2) DEFAULT NULL",
"contract_id bigint(20) NOT NULL",
"date_accepted bigint(20) DEFAULT NULL",
"date_accepted_hour int(11) GENERATED ALWAYS AS (floor(date_accepted / 3600000)) STORED",
"date_completed bigint(20) DEFAULT NULL",
"date_completed_hour int(11) GENERATED ALWAYS AS (floor(date_completed / 3600000)) STORED",
"date_expired bigint(20) NOT NULL",
"date_expired_hour int(11) GENERATED ALWAYS AS (floor(date_expired / 3600000)) STORED",
"date_issued bigint(20) NOT NULL",
"date_issued_hour int(11) GENERATED ALWAYS AS (floor(date_issued / 3600000)) STORED",
"days_to_complete int(11) DEFAULT NULL",
"end_location_id bigint(20) DEFAULT NULL",
"for_corporation tinyint(1) NOT NULL",
"issuer_corporation_id bigint(20) NOT NULL",
"issuer_id bigint(20) NOT NULL",
"price decimal(22,2) DEFAULT NULL",
"reward decimal(22,2) DEFAULT NULL",
"start_location_id bigint(20) DEFAULT NULL",
"status enum('outstanding','in_progress','finished_issuer','finished_contractor','finished','cancelled','rejected','failed','deleted','reversed','expired') NOT NULL",
"title tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL",
"type enum('unknown','item_exchange','auction','courier','loan') NOT NULL",
"volume decimal(22,3) DEFAULT NULL",
"created timestamp NOT NULL DEFAULT current_timestamp()",
"last_update timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()"
],
"tail": " ENGINE=InnoDB DEFAULT CHARSET=latin1;"
},
"etag": {
"db": "karkinos",
"name": "etag",
"primary_key": "cip",
"keys": {
"etag": "etag"
},
"column_order": [
"cip",
"etag",
"ids",
"len"
],
"duplicates": "ON DUPLICATE KEY UPDATE etag=VALUES(etag)",
"proto": [
"cip varchar(250) NOT NULL",
"etag varchar(250) NOT NULL",
"ids mediumtext NOT NULL",
"len int(11) DEFAULT NULL"
],
"tail": " ENGINE=InnoDB DEFAULT CHARSET=latin1;"
},
"job_log": {
"db": "karkinos",
"name": "job_log",
"primary_key": "id",
"keys": {
"job_id": "job_id"
},
"column_order": [
"`time`",
"job_id",
"`pages`",
"records",
"affected",
"removed",
"runtime",
"download",
"cache"
],
"proto": [
"id BIGINT NOT NULL AUTO_INCREMENT",
"`time` BIGINT NOT NULL",
"`job_id` INT NOT NULL",
"`pages` SMALLINT NOT NULL",
"`records` INT NOT NULL",
"`affected` INT NOT NULL",
"`removed` INT NOT NULL",
"`runtime` INT NOT NULL",
"`download` INT NOT NULL",
"`cache` INT NOT NULL"
],
"tail": " ENGINE=InnoDB DEFAULT CHARSET=latin1;"
},
"jobs": {
"db": "karkinos",
"name": "jobs",
"primary_key": "id",
"unique_keys": {
"msee": "method:spec:endpoint:entity"
},
"column_order": [
"method",
"spec",
"endpoint",
"entity",
"pages",
"`table`",
"nextrun"
],
"proto": [
"id INT NOT NULL AUTO_INCREMENT",
"method VARCHAR(12) NOT NULL",
"spec VARCHAR(10) NOT NULL",
"endpoint VARCHAR(110) NOT NULL",
"entity VARCHAR(250) NOT NULL",
"pages TINYINT NOT NULL",
"`table` VARCHAR(12) NOT NULL",
"nextrun BIGINT NOT NULL"
],
"tail": " ENGINE=InnoDB DEFAULT CHARSET=latin1;"
},
"orders": {
"db": "karkinos",
"name": "orders",
"primary_key": "order_id",
"changed_key": "issued",
"job_key": "source",
"keys": {
"is_buy_order": "is_buy_order",
"location_id": "location_id",
"owner": "owner",
"source": "source",
"type_id": "type_id"
},
"column_order": [
"source",
"owner",
"duration",
"is_buy_order",
"issued",
"location_id",
"min_volume",
"order_id",
"price",
"`range`",
"type_id",
"volume_remain",
"volume_total"
],
"duplicates": "ON DUPLICATE KEY UPDATE source=IF(ISNULL(VALUES(owner)),VALUES(source),source),owner=IF(ISNULL(VALUES(owner)),owner,VALUES(owner)),issued=VALUES(issued),price=VALUES(price),volume_remain=VALUES(volume_remain)",
"proto": [
"source bigint(20) NOT NULL",
"owner bigint(20) NULL",
"duration int(4) NOT NULL",
"is_buy_order tinyint(1) NOT NULL",
"issued bigint(20) NOT NULL",
"location_id bigint(20) NOT NULL",
"min_volume int(11) NOT NULL",
"order_id bigint(20) NOT NULL",
"price decimal(22,2) NOT NULL",
"`range` enum('station','region','solarsystem','1','2','3','4','5','10','20','30','40')",
"type_id int(11) NOT NULL",
"volume_remain bigint(20) NOT NULL",
"volume_total bigint(20) NOT NULL"
],
"tail": " ENGINE=InnoDB DEFAULT CHARSET=latin1;"
},
"spec": {
"db": "karkinos",
"name": "spec",
"primary_key": "method:spec:endpoint",
"column_order": [
"method",
"spec",
"endpoint",
"security",
"cache",
"items",
"paged"
],
"proto": [
"method VARCHAR(12) NOT NULL",
"spec VARCHAR(10) NOT NULL",
"endpoint VARCHAR(110) NOT NULL",
"security VARCHAR(110) NOT NULL",
"cache INT NOT NULL",
"items INT NOT NULL",
"paged TINYINT NOT NULL"
],
"tail": " ENGINE=InnoDB DEFAULT CHARSET=latin1;"
}
}
}