/
common.conf
270 lines (217 loc) · 9.52 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
# -----------------------------------------------------------------------------
# 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'
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# --- Debug
# --- (used for debugging purposes only)
#debugMode=true
# -----------------------------------------------------------------------------
# --- Logging
# --- (output message logging specifications)
#%log=${%version} IsWebApp=${%isWebApp}
# - log file name
# (the default 'contextName' is obtained from the main class or servlet context)
log.name=${%contextName=default}
# - log file (file logging enabled iff 'log.file' is defined)
# (uncomment to write output log messages to the specified file)
log.file=${GTS_HOME=/tmp}/logs/${log.name}.log
# - disable file logging unless explicitly enabled
log.file.enable=false
# - 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
# - logging level
# (display log msgs with 'log.level' or higher)
log.level=info
# - 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)
# --- DBConnection pool (EXPERIMENTAL)
#db.dbConnectionPool=true
# --- DataSource connection pool
#db.dataSource.class=default
#db.dataSource.maxActive=100
#db.dataSource.maxIdle=30
#db.dataSource.maxWait=10000
# --- MySQL
db.sql.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
# --- Microsoft SQL Server
#db.sql.provider=sqlserver
#db.sql.host=localhost
#db.sql.port=3193
#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}
# --- Apache Derby (not fully supported)
#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}
# --- Show sql statements prior to execution, show new connections (for debug purposes)
db.showSQL=false
db.showConnections=false
# --- 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
# -----------------------------------------------------------------------------
# --- 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 'maximumSec' seconds into the future.
# - 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 this maximum timestamp. (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.user.emailAddress=someusername@example.com
#smtp.password=password
#smtp.enableSSL=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)
# -
#SmsGatewayHandler.emailBody.smsEmailAddress=@sms.example.com
#SmsGatewayHandler.emailSubject.smsEmailAddress=@sms.example.com
# -
#SmsGatewayHandler.httpURL.url=http://localhost:12345/sendSMS?user=muuser&pass=mypass&from=1235551212&to=${mobile}&text=${message}
# -
#SmsGatewayHandler.clickatell.smsEmailAddress=@sms.example.com
#SmsGatewayHandler.clickatell.user=myuser
#SmsGatewayHandler.clickatell.password=mypass
#SmsGatewayHandler.clickatell.api_id=1234
# -
#SmsGatewayHandler.mail2txt.smsEmailAddress=@sms.example.com
#SmsGatewayHandler.mail2txt160.smsEmailAddress=@sms.example.com
#SmsGatewayHandler.mail2txtid.smsEmailAddress=@sms.example.com
#SmsGatewayHandler.mail2txtid.from=me@example.com
#SmsGatewayHandler.mail2txt160id.smsEmailAddress=@sms.example.com
#SmsGatewayHandler.mail2txt160id.from=me@example.com
# -
# -----------------------------------------------------------------------------
# --- 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
#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 Postgres
#bc.sql.host=localhost
#bc.sql.port=
#bc.sql.dbname=bcrossing_db
bc.sql.user=bcross
bc.sql.password=
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# --- Include other runtime conf files
# --- Service Account values (autogenerated config file)
%include?=file:system.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
%include?=file:config_old.conf
%include?=file:config.conf
# ---