-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommon.conf
372 lines (312 loc) · 13.3 KB
/
common.conf
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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
# -----------------------------------------------------------------------------
# Project: OpenGTS - Open GPS Tracking System
# URL : http://www.opengts.org
# File : common.conf
# -----------------------------------------------------------------------------
# Notes:
# - This runtime-config file establishes global system-level attributes
# (the 'private.xml' file establishes domain-level atributes).
# - Comment lines begin with a '#' character.
# - Comments MUST NOT be placed at the end of a key=value line
# - Variable name substitution syntax defined in 'README.txt'
# -----------------------------------------------------------------------------
# This config file includes the following files, this this order:
# - system.conf
# - statusCodes.conf
# - custom.conf
# - custom_gts.conf
# - config_old.conf
# - config.conf
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# --- Debug
# --- (used for debugging purposes only)
#%debugMode=true
# -----------------------------------------------------------------------------
# --- Logging
# --- (output message logging specifications)
#%log=${%version} IsWebApp=${%isWebApp}
# - log location
log.dir=${GTS_HOME=/tmp}/logs
# - log file context
# (the default 'contextName' is obtained from the main class or servlet context)
%if %isWebApp == true
#%log Default context name: "webapp"
log.name=${%contextName=webapp}
# - enable internal file logging
log.file.enable=true
# - default log-level
#log.level=debug
log.level=info
%else
#%log Default context name: "default"
log.name=${%contextName=default}
# - disable internal file logging
log.file.enable=false
# - default log-level
log.level=info
%endif
# - log file name
log.file=${log.dir}/${log.name}.log
# - automatically rotate log file when specified size is reached
log.file.rotate.maxSize=5000000
# - date format extension appended to rotated log files
# (see JDK JavaDocs for 'SimpleDateFormat' for formatting options)
# - yyyy = year
# - MM = month
# - dd = day
# - HH = hour
# - mm = minute
# - ss = seconds
# - SSS = milliseconds
#log.file.rotate.dateFormatExtn=yyyyMMddHHmmss.SSS'.log'
log.file.rotate.dateFormatExtn=yyyyMMddHHmmss'.log'
# - delete rotated log files greater than specified age (s=seconds, m=minutes, d=days)
# (ie. defaults to 'days'. ie "60" is 60 days, "60m" is 60 minutes)
#log.file.rotate.deleteAge=60d
# - log header level
# (display header/date/frame on log msgs with 'log.level.header' or higher)
log.level.header=all
# - include date and stackframe on log messages
log.include.date=true
log.include.frame=true
# --- display log message
#%log=(${log.name}:${%version}) Loading "${%configURL}"
#%log=Context Name : "${%contextName}"
#%log=Context Path : "${%contextPath}"
# -----------------------------------------------------------------------------
# --- StartupInit
# (this should point to your customized StartupInit module, if any)
#StartupInit.class=org.opengts.StartupInit
# -----------------------------------------------------------------------------
# --- EventData
#EventData.defaultPushpinName=heading
# -----------------------------------------------------------------------------
# --- Database access config
# --- (these values must match the authorized SQL database access provided by the system admin)
# -- General property descriptions:
# -- - db.sql.provider
# -- The name of the database provider supported by the GTS (ie. "mysql", "sqlserver")
# -- - db.sql.host
# -- The name of the host where the database server resides (ie. "localhost")
# -- - db.sql.port
# -- The port on the database server host where the database provider listens for requests.
# -- - db.sql.dbname
# -- The name of the GTS database (ie. "gts")
# -- - db.sql.user
# -- The name of the user with authorized access to the GTS database (ie. "gts")
# -- - db.sql.password
# -- The password for the GTS database user (ie. "opengts")
# -- - db.sql.url
# -- The base JDBC connection url for the database access
# -- - db.sql.url.db
# -- The full JDBC connection url for the database access
db.provider=mysql
# --- MySQL
%if db.provider == mysql
db.sql.provider=${ServiceAccount.db.provider=mysql}
db.sql.host=localhost
db.sql.port=3306
db.sql.dbname=${ServiceAccount.db.name=gts}
db.sql.user=${ServiceAccount.db.user=gts}
db.sql.password=${ServiceAccount.db.pass=opengts}
#db.sql.rootUser=root
#db.sql.rootPass=rootpass
db.sql.utf8=${ServiceAccount.db.utf8=true}
db.sql.url=jdbc:mysql://${db.sql.host}:${db.sql.port}/
#db.sql.url.db=${db.sql.url}${db.sql.dbname}
db.sql.url.db=${db.sql.url}${db.sql.dbname}?characterEncoding=UTF-8&useUnicode=true&characterSetResults=utf8
# Other possible MySQL JDBC options include:
# &interactiveClient=true
# &tcpKeepAlive=true
# &autoReconnect=true
# ¶noid=true
# &characterEncoding=UTF-8
# &useUnicode=true
# &characterSetResults=utf8
# &jdbcCompliantTruncation=false (to truncate data to the size of the field)
#db.mysql.tableExistsSelectCount=true
%endif
# --- Microsoft SQL Server
%if db.provider == sqlserver
db.sql.provider=sqlserver
db.sql.host=localhost
#db.sql.port=3193
db.sql.port=1433
db.sql.dbname=gts
db.sql.user=gts
db.sql.password=opengts
db.sql.url=jdbc:sqlserver://${db.sql.host}:${db.sql.port}
db.sql.url.db=${db.sql.url};databaseName=${db.sql.dbname};user=${db.sql.user};password=${db.sql.password}
%endif
# --- PostgreSQL (may not be fully supported)
%if db.provider == postgresql
db.sql.provider=postgresql
db.sql.dbname=gts
db.sql.host=localhost
db.sql.port=5432
db.sql.user=gts
db.sql.password=opengts
db.sql.url=jdbc:postgresql://localhost:${db.sql.port}/
%endif
# --- Apache Derby (NOT FULLY SUPPORTED)
%if db.provider == derby
db.sql.provider=derby
db.sql.host=localhost
db.sql.port=1527
db.sql.dbname=gts
db.sql.user=gts
db.sql.password=opengts
db.sql.url=jdbc:derby://${db.sql.host}:${db.sql.port}/${db.sql.dbname};create=true
db.sql.url.db=${db.sql.url}
%endif
# -----------------------------------------------------------------------------
# --- Show sql statements prior to execution, show new connections (for debug purposes)
#db.showSQL=true
db.showConnections=false
# --- DBConnection pool
#db.dbConnectionPool=true
# --- DataSource connection pool
#db.dataSource.class=default
#db.dataSource.maxActive=100
#db.dataSource.maxIdle=30
#db.dataSource.maxWait=10000
# -----------------------------------------------------------------------------
# --- Device authorization when no groups have been assigned
# - (ie. if no explicit group is assigned to a user, does the user have access to all devices?)
#db.defaultDeviceAuthorization=true
#db.defaultDeviceAuthorization.smith=false
# --- Transport/UniquwXID uniqueID lookup
Transport.queryEnabled=true
UniquwXID.queryEnabled=false
# -----------------------------------------------------------------------------
# --- SMS default enabled state [false|true|account]
Account.smsEnabled=true
# -----------------------------------------------------------------------------
# --- Past event timestamp handling
# - (Note: usage of this feature necessitates always having an accurate system clock time)
# - Action to take when an event contains a date in the past. [ignore|truncate|disabled]
# - ignore : Ignore records which are more than 'maximumSec' seconds into the past.
# - truncate : Sets the maximum 'past' date to the current time.
# - disabled : Past dates are not checked (ie. they are passed through as-is).
Device.pastDate.action=disabled
# - Maximum number of seconds into the past that a reported event is allowed to have.
# - Must be > 0 to be enabled. Past dates less than the current timestamp, minus this
# - offset will be ignored, or trucnated to the current time. (31536000 sec = 365 days)
Device.pastDate.maximumSec=31536000
# --- Future event date handling
# - (Note: usage of this feature necessitates always having an accurate system clock time)
# - Action to take when an event contains a date in the future. [ignore|truncate|disabled]
# - ignore : Ignore records which are more than 'maximumSec' seconds into the future.
# - truncate : Sets the maximum 'future' date to the current time.
# - disabled : Future dates are not checked (ie. they are passed through as-is).
Device.futureDate.action=disabled
# - Maximum number of seconds into the future that a reported event is allowed to have.
# - Must be > 0 to be enabled. Future dates greater than the current timestamp, plus this
# - offset will be ignored, or trucnated to the current time. (86400 sec = 1 day)
Device.futureDate.maximumSec=86400
# -----------------------------------------------------------------------------
# --- SMTP
# --- (outgoing email configuration parameters)
##smtp.host=localhost
#smtp.debug=false
#smtp.host=smtp.example.com
#smtp.port=465
#smtp.user=someusername
#smtp.password=password
#smtp.enableSSL=true
#smtp.enableTLS=true
#smtp.threadModel.show=false
# -----------------------------------------------------------------------------
# --- System Admin account name
sysAdmin.account=sysadmin
# --- Account: default PrivateLabel name for new accounts
#Account.default.privateLabelName=*
# --- HTTP User-Agent (used by "HTMLTools.java")
# - (should always be resolved in the conext of a PrivateLabel)
http.userAgent=OpenGTS/${%version} [${session.locale=EN}] ${session.name=}
# -----------------------------------------------------------------------------
# --- PasswordHandler [default|md5|<className>]
#PasswordHandler.class=<include a PasswordHandler implementation subclass here>
#PasswordHandler.class=md5
# -----------------------------------------------------------------------------
# --- SmsGatewayHandler (see DCServerConfig.java, SMSOutboundGateway.java)
# -
# - default outbound SMS gateway name
#SmsGatewayHandler.gatewayName=httpURL
# -
# - EMail-based SMS gateway
#SmsGatewayHandler.emailBody.smsEmailAddress=%{mobile}@sms.example.com
#SmsGatewayHandler.emailSubject.smsEmailAddress=%{mobile}@sms.example.com
# -
# - Generic HTTP-based SMS gateway (ie. Kannel)
#SmsGatewayHandler.httpURL.url=http://localhost:12345/sendSMS?user=myuser&pass=mypass&from=%{sender}&to=%{mobile}&text=%{message}
# -
# - MultiTech SF100-G HTTP-based SMS gateway
#SmsGatewayHandler.httpURL.url=http://localhost:9191/sendmsg?user=admin&passwd=admin&cat=1&to=%{mobile}&text=%{message}
# -
# - Clickatel
#SmsGatewayHandler.clickatell.user=myuser
#SmsGatewayHandler.clickatell.password=mypass
#SmsGatewayHandler.clickatell.api_id=1234
# -
# - TextAnywhere
# -
# -----------------------------------------------------------------------------
# --- Custom RuleFactory
#RuleFactory.class=<include a RuleFactory implementation subclass here>
# --- RuleFactoryLite
#RuleFactory.class=org.opengts.extra.rule.RuleFactoryLite
#RuleFactoryLite.emailEnabled=true
# --- Custom Rule functions/identifiers
#EventFunctionMap.adminAccounts=cronadmin
#EventFunctionMapFactory.class=rule.ExampleFunctionMapFactory
#EventIdentifierMapFactory.class=rule.ExampleIdentifierMapFactory
# --- custom RuleListener (replace with your own custom RuleListener)
#rule.ruleListenerClass=org.opengts.rule.RuleListenerTest
# --- Rule WorkHours (feature may not be available in all releases)
rule.workHours.sun=
rule.workHours.mon=06:00-18:00
rule.workHours.tue=06:00-18:00
rule.workHours.wed=06:00-18:00
rule.workHours.thu=06:00-18:00
rule.workHours.fri=06:00-18:00
rule.workHours.sat=
# -----------------------------------------------------------------------------
# --- BorderCrossing SubdivisionProvider
#SubdivisionProvider.class=
# --- BorderCrossing PostgreSQL
#bc.sql.host=localhost
#bc.sql.port=
bc.sql.dbname=bcrossing_db
bc.sql.user=bcross
bc.sql.password=
bc.sql.tables=bc_boundaries
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# --- Include other runtime conf files
# --- Service Account values (autogenerated config file)
%include?=file:system.conf
%include?=file:authkeys.conf
# --- Status code overrides
%include?=file:statusCodes.conf
# --- Extra custom initialization on startup
%include?=file:custom.conf
%include?=file:custom_gts.conf
# --- gtsConfig value overrides
# - 'config_old.conf' is loaded to set the defaults for 'config.conf'
# - 'config.conf' is modified by "bin/gtsConfig.pl -config"
# - The file 'config_old.conf' is no longer needed once 'config.conf' is modified/merged
# - The following command will merge "config_old.conf" into "config.conf"
# - bin/exeJava org.opengts.util.RTConfig -merge=config_old.conf -into=config.conf
%include?=file:config_old.conf
%include?=file:config.conf
# ---