-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathdefault.cjs
117 lines (117 loc) · 2.11 KB
/
default.cjs
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
module.exports = {
server: {
host: 'https://api.globalping.io',
docsHost: 'https://globalping.io',
port: 3000,
processes: 2,
cors: {
trustedOrigins: [
'https://globalping.io',
'https://staging.globalping.io',
'http://localhost:13000',
],
},
session: {
cookieName: 'dash_session_token',
cookieSecret: '',
},
},
redis: {
standalonePersistent: {
url: 'redis://localhost:7001',
},
standaloneNonPersistent: {
url: 'redis://localhost:7002',
},
clusterMeasurements: {
// listing three nodes here is enough, the rest will be discovered automatically
nodes: {
0: 'redis://localhost:7101',
1: 'redis://localhost:7102',
2: 'redis://localhost:7103',
},
options: {},
},
sharedOptions: {
password: 'PASSWORD',
socket: {
tls: false,
},
},
},
db: {
type: 'mysql',
connection: {
host: 'localhost',
user: 'directus',
password: 'password',
database: 'dashboard-globalping',
port: 3306,
},
},
dashboard: {
directusUrl: 'https://dash-directus.globalping.io',
},
admin: {
key: '',
},
systemApi: {
key: '',
},
geoip: {
cache: {
enabled: true,
ttl: 3 * 24 * 60 * 60 * 1000, // 3 days
},
},
maxmind: {
accountId: '',
licenseKey: '',
},
ipinfo: {
apiKey: '',
},
ip2location: {
apiKey: '',
},
adoptedProbes: {
syncInterval: 60000,
},
adminData: {
syncInterval: 60000,
},
measurement: {
maxInProgressTests: 5,
// Timeout after which measurement will be marked as finished even if not all probes respond
timeout: 30, // 30 seconds
// measurement result TTL in redis
resultTTL: 7 * 24 * 60 * 60, // 7 days
rateLimit: {
post: {
anonymousLimit: 250,
authenticatedLimit: 500,
reset: 3600,
},
getPerMeasurement: {
limit: 5,
reset: 2,
},
},
limits: {
anonymousTestsPerLocation: 200,
anonymousTestsPerMeasurement: 500,
authenticatedTestsPerLocation: 500,
authenticatedTestsPerMeasurement: 500,
},
globalDistribution: {
AF: 5,
AS: 15,
EU: 30,
OC: 10,
NA: 30,
SA: 10,
},
},
reconnectProbesDelay: 2 * 60 * 1000,
sigtermDelay: 15000,
};