-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml
96 lines (86 loc) · 2.26 KB
/
config.toml
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
# trapyz geo loc config
version = "1.0"
# default radius 300 meters
radius = "300"
nworkers = 4
tpz_env = "dev"
# scheduling interval, currently supports daily|hourly
#daily reads yesterday's data yesterday midnight to today midnight
#hourly reads the past hour's worth of data
schedule = "hourly"
[db]
[db.mysql-prod]
server = ""
port = "3306"
dbname = ""
user = ""
password = ""
#Table names valid keys master_rec_table, store_uuid_table, pincode_table
[db.mysql-prod.tables]
master_rec_table="MasterRecordSet"
store_uuid_table="StoreUuidMap"
pincode_table="Pincode"
city_table="CityMap"
[db.redis-prod]
server = ""
port = "6379"
dbname = ""
user = ""
password = ""
[db.redis-local-prod]
server = "127.0.0.1"
port = "6379"
dbname = ""
user = ""
password = ""
[db.mysql-dev]
server = "127.0.0.1"
port = "3301"
dbname = "trapyz_beta"
user = "root"
password = "admin"
[db.mysql-dev.tables]
master_rec_table="MasterRecordSet"
store_uuid_table="StoreUuidMap"
pincode_table="Pincode"
city_table="CityMap"
[db.redis-dev]
server = "127.0.0.1"
port = "6379"
dbname = ""
user = ""
password = ""
#Options for S3 NOTE: Do not store AWS credentials here
[aws]
[aws.s3-prod]
region="us-east-1"
profile="trapyz"
bucket = "usergeologs"
prefixes=[
"usergeopointlocation",
"userwificonnectedlocation",
"userwifiscanlocation",
"usergeopixellogs"
]
#Directory prefix, suffix will be tpz env [eg:s3dump-prod]
s3dump_prefix = "./s3dump"
#The date format of s3 buckets
#The date format string must follow golang's date format convention
date_format="2006-01-02"
#Scale createdAt time from seconds to milliseconds if true.
#If this option does not exist it is considered as false
scale_time = true
fetch_hourly=false
[aws.s3-dev]
region="us-east-1"
profile="bobble"
bucket = "usergeologs"
prefixes=["usergeopixellogs"]
#Directory prefix, suffix will be tpz env [eg: s3dump-dev]
s3dump_prefix = "./s3dump"
flatten = true
[output]
directory = "./tpz-geo-out"
file = "geocalc.out"
logdir = "./tpz-geo-out"
logfile = "geocalc-process.log"