-
Notifications
You must be signed in to change notification settings - Fork 6
/
application.yml
407 lines (388 loc) · 10.4 KB
/
application.yml
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
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
app:
meta:
name: SolarUser
key: user
billing:
delivery-timeout-secs: 60
invoice:
mail.from: accounts@localhost
html-template-cache:
ttl: 3600
cache.persistence.path: "var/cache"
c2c:
cache:
egague-device-registers:
ttl: 3600
heap-max-entries: 1000
disk-max-size-mb: 5
expression-cache:
tti: 3600
ttl: 0
heap-max-entries: 5000
disk-max-size-mb: 0
solaredge-site-inventory:
ttl: 3600
heap-max-entries: 1000
disk-max-size-mb: 5
solaredge-site-tz:
tti: 3600
ttl: 0
heap-max-entries: 5000
disk-max-size-mb: 0
tariff-cache:
ttl: 900
heap-max-entries: 1000
disk-max-size-mb: 0
encryptor:
password: "Secret123"
salt-hex: "01234567"
datasource:
hikari:
minimumIdle: 1
connectionTimeout: 30000
idleTimeout: 600000
maxLifetime: 1800000
readOnly: false
url: "jdbc:postgresql://localhost/solarnetwork_unittest"
username: solartest
password: solartest
initialize: false
datum:
export.temporaryDir: "${java.io.tmpdir}"
import:
concurrent-tasks: 2
concurrent-preview-tasks: 4
preview-max-count: 100
progress-log-count: 25000
completed-task-minimum-cache-time: 14400000
workPath: "${java.io.tmpdir}"
resource-storage-wait-ms: 60000
resource-storage-uid: "Datum-Import"
s3-storage:
objectKeyPrefix: "datum-import/"
s3Client:
bucketName: snf-apps
regionName: us-west-2
accessToken: TOKEN_HERE
accessSecret: SECRET_HERE
stream-metadata-cache:
ttl: 300
heap-max-entries: 10000
disk-max-size-mb: 100
stream-metadata-id-cache:
ttl: 900
heap-max-entries: 10000
disk-max-size-mb: 100
din:
max-datum-input-length: 8196
xslt:
templates-cache:
ttl: 15
dnp3:
server-import-csv-example-resources:
"[text/csv]": "classpath:net/solarnetwork/central/user/dnp3/support/SolarDNP3 Configuration Example.csv"
"[application/vnd.openxmlformats-officedocument.spreadsheetml.sheet]": "classpath:net/solarnetwork/central/user/dnp3/support/SolarDNP3 Configuration Example.xlsx"
email-throttle-cache:
ttl: 600
heap-max-entries: 1000
disk-max-size-mb: 100
http.client:
connections:
max-total: 20
settings:
connect-timeout: "10s"
connection-request-timeout: "15s"
socket-timeout: "20s"
inin:
max-input-length: 8196
xslt:
templates-cache:
ttl: 15
location.request:
alert-mail: "nobody@localhost"
job:
security-token-spool.cleaner:
minutes-older: 10
schedule: 120000
din:
xslt-templates-cache-prune:
maximum-wait-ms: 240000
schedule: 3600000
mqtt.client:
io-thread-count: 2
wire-logging-enabled: false
network-identity:
network-identity-key: "solaruser:identity:here"
terms-of-service: "solaruser:tos:here"
host: "localhost"
port: 9083
force-tls: false
service-urls:
node-dashboard: "http://localhost/node-dashboard"
node-dataview: "http://localhost/node-dataview?nodeId={nodeId}"
solardin: "http://localhost:9087"
solarin-mqtt: "mqtts://localhost:8883"
solarquery: "http://localhost:9082/solarquery"
solaruser: "http://localhost:9081/solaruser"
node.pki:
cs:
certificate-expire-days: 730
signature-algorithm: "SHA256WithRSA"
dogtag:
base-url: "https://ca.solarnetwork.net:8443"
profile-id: "SolarNode"
keystore-resource: "classpath:dogtag-client.jks"
keystore-password: "changeit"
expire-warning-days: 5
node-metadata-cache:
ttl: 300
heap-max-entries: 10000
disk-max-size-mb: 10
node-ownership-cache:
ttl: 60
heap-max-entries: 10000
disk-max-size-mb: 10
node-service-auditor:
update-delay: 100
flush-delay: 10000
connection-recovery-delay: 15000
stat-log-update-count: 500
oauth:
client:
registration-cache:
ttl: 120
heap-max-entries: 1000
disk-max-size-mb: 0
ocpp.v16:
mqtt.instr-handler:
mqtt-topic: "instr/OCPP_v16"
publish-only: true
publish-qos-level: 1
query-cache:
enabled: false
cache:
ttl: 60
heap-max-entries: 1000
disk-max-size-mb: 80
compress-minimum-length: 512
stat-log-access-count: 10000
filter:
lock-pool-capacity: 128
request-lock-timeout: 180000
stat-log-access-count: 10000
secrets:
aws:
region: "us-west-2"
access-token: "TOKEN_HERE"
access-secret: "SECRET_HERE"
cache:
ttl: 900
heap-max-entries: 500
disk-max-size-mb: 50
simple:
dir: "var/secrets"
password: "Secret.123"
scheduler-manager:
blocked-job-max-seconds: 1800
ping-test-maximum-execution-milliseconds: 2000
security:
auth-events:
pub-success: true
solarflux:
connection:
uid: "SolarFlux-${app.meta.instance-id}"
mqtt-stats.log-frequency: 200
mqtt-config:
server-uri: "mqtt://solarflux.solarnetwork:1883"
client-id: "solaruser-${app.meta.instance-id}"
username: "USERNAME_HERE"
password: "PASSWORD_HERE"
connect-timeout-seconds: 10
keep-alive-seconds: 60
read-timeout-seconds: 0
write-timeout-seconds: -1
user-events:
publish-qos-level: 0
solarqueue:
connection:
uid: "SolarInstr-${app.meta.instance-id}"
mqtt-stats.log-frequency: 200
mqtt-config:
server-uri: "mqtt://localhost:1883"
client-id: "solaruser-${app.meta.instance-id}"
username: "USERNAME_HERE"
password: "PASSWORD_HERE"
connect-timeout-seconds: 10
keep-alive-seconds: 60
read-timeout-seconds: 0
write-timeout-seconds: -1
instr-publish:
publish-qos-level: 1
task.executor:
thread-name-prefix: "SolarNet-"
core-pool-size: 10
max-pool-size: 10
allow-core-thread-time-out: false
task.scheduler:
thread-name-prefix: "SolarNet-Sched-"
pool-size: 5
remove-on-cancel-policy: true
user.datum:
delete:
completed-task-minimum-cache-time: 14400000
delete-batch-days: 7
parallelism: 1
user.reg:
biz:
network-certificate-subject-format: "UID=%s,O=SolarNetwork"
approve-csr-maximum-wait-secs: 15
node-certificate-renewal-period-months: 3
mail.template:
from: "nobody@localhost.localdomain"
versioned-messages-cache:
ttl: 600
web.security:
token:
max-request-body-size: "20MB"
max-date-skew: 900000
minimum-compress-length: "32KB"
minimum-spool-length: "65KB"
spool-directory: "${java.io.tmpdir}/SecurityTokenFilter"
debug: true
logging:
level:
ROOT: INFO
org.mybatis.spring.mapper.ClassPathMapperScanner: "OFF"
org.springframework.aop.framework.CglibAopProxy: "ERROR"
pattern:
console: "%d{yyyy-MM-dd HH:mm:ss.SSS} ${LOG_LEVEL_PATTERN:%5p} %-40.40logger{39}: %m%n${LOG_EXCEPTION_CONVERSION_WORD:%wEx}"
file: "%d{yyyy-MM-dd HH:mm:ss.SSS} ${LOG_LEVEL_PATTERN:%5p} %-40.40logger{39} : %m%n${LOG_EXCEPTION_CONVERSION_WORD:%wEx}"
management:
endpoints:
web:
base-path: "/ops"
exposure:
include: "*"
mybatis:
configuration:
map-underscore-to-camel-case: true
default-fetch-size: 100
default-statement-timeout: 30
configuration-properties:
node-cache-flush: 900000
ocpp-auth-cache-flush: 900000
ocpp-charge-point-cache-flush: 900000
ocpp-system-user-cache-flush: 900000
user-cache-flush: 900000
user-auth-token-cache-flush: 900000
user-node-cache-flush: 900000
mapper-locations: "classpath*:net/solarnetwork/central/**/mybatis/map/*.xml"
type-aliases-package: >-
net.solarnetwork.central.domain
net.solarnetwork.central.datum.export.domain
net.solarnetwork.central.instructor.domain
net.solarnetwork.central.user.domain
server:
compression:
enabled: true
mime-types: "application/json,application/javascript,image/svg+xml,text/css,text/html,text/plain,text/xml"
min-response-size: 2048
error.whitelabel.enabled: false
port: 9081
servlet:
context-path: "/solaruser"
session:
cookie:
http-only: true
timeout: "15m"
tracking-modes: "COOKIE"
tomcat:
# max-http-form-post-size: "2MB"
max-swallow-size: -1
threads:
min-spare: 10
max: 50
spring:
jmx.enabled: false
mvc.format:
date: "iso"
date-time: "iso"
time: "iso"
servlet.multipart:
max-file-size: "250MB"
max-request-size: "256MB"
location: ""
file-size-threshold: "1MB"
session.jdbc:
initialize-schema: "never"
table-name: "solaruser.http_session"
---
spring:
config.activate.on-profile: development
thymeleaf.cache: false
server:
forward-headers-strategy: "NATIVE"
app:
datasource:
url: "jdbc:postgresql://localhost/solarnetwork"
username: "solarnet"
password: "solarnet"
debug: false
---
spring:
config.activate.on-profile: staging
mail:
host: "localhost"
port: 587
username: "mailuser"
password: "mailpass"
properties:
"[mail.smtp.auth]": true
"[mail.smtp.connectiontimeout]": 5000
"[mail.smtp.starttls.enable]": true
"[mail.smtp.starttls.required]": true
"[mail.smtp.timeout]": 5000
"[mail.smtp.writetimeout]": 5000
thymeleaf.cache: true
web.resources.cache.period: "1d"
app:
billing:
invoice.mail.from: "accounts@stage.solarnetwork.net"
user.reg:
mail.template.from: "system@stage.solarnetwork.net"
debug: false
server:
forward-headers-strategy: "NATIVE"
servlet:
session:
cookie:
secure: true
---
spring:
config.activate.on-profile: production
mail:
host: "localhost"
port: 587
username: "mailuser"
password: "mailpass"
properties:
"[mail.smtp.auth]": true
"[mail.smtp.connectiontimeout]": 5000
"[mail.smtp.starttls.enable]": true
"[mail.smtp.starttls.required]": true
"[mail.smtp.timeout]": 5000
"[mail.smtp.writetimeout]": 5000
thymeleaf.cache: true
web.resources.cache.period: "1d"
app:
billing:
invoice.mail.from: "accounts@solarnetwork.net"
user.reg:
mail.template.from: "system@solarnetwork.net"
debug: false
server:
forward-headers-strategy: "NATIVE"
servlet:
session:
cookie:
secure: true