-
Notifications
You must be signed in to change notification settings - Fork 6
/
application.yml
203 lines (190 loc) · 5.01 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
app:
meta:
name: "SolarOSCP-FP"
key: "oscp-fp"
cache.persistence.path: "var/cache"
datasource:
hikari:
minimumIdle: 1
connectionTimeout: 30000
idleTimeout: 600000
maxLifetime: 1800000
readOnly: false
url: "jdbc:postgresql://localhost/solarnetwork"
username: "solarnet"
password: "solarnet"
initialize: false
datum:
stream-metadata-cache:
ttl: 300
heap-max-entries: 10000
disk-max-size-mb: 10
stream-metadata-id-cache:
ttl: 900
heap-max-entries: 10000
disk-max-size-mb: 5
http.client:
connections:
max-total: 20
settings:
connect-timeout: 10s
connection-request-timeout: 15s
socket-timeout: 20s
job.oscp:
heartbeat.co:
maximum-iterations: 1000
maximum-wait-ms: 240000
parallelism: 1
schedule: "30 * * * * *"
heartbeat.cp:
maximum-iterations: 1000
maximum-wait-ms: 240000
parallelism: 1
schedule: "0 * * * * *"
measurement.co:
maximum-iterations: 1000
maximum-wait-ms: 240000
parallelism: 1
schedule: "20 1/2 * * * *"
measurement.cp:
maximum-iterations: 1000
maximum-wait-ms: 240000
parallelism: 1
schedule: "50 1/2 * * * *"
mqtt.client:
io-thread-count: 2
wire-logging-enabled: false
node-ownership-cache:
ttl: 60
heap-max-entries: 10000
disk-max-size-mb: 10
oauth:
client:
registration-cache:
ttl: 120
heap-max-entries: 1000
disk-max-size-mb: 0
oscp.v20:
mqtt.instr-handler:
mqtt-topic: "instr/OSCP_v20"
subscribe-timeout: 30
scheduler-manager:
blocked-job-max-seconds: 1800
ping-test-maximum-execution-milliseconds: 2000
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: 1
simple:
dir: "var/secrets"
password: "Secret.123"
solarflux:
connection:
uid: "SolarFlux-${app.meta.instance-id}"
mqtt-stats.log-frequency: 200
mqtt-config:
server-uri: "mqtt://solarflux.solarnetwork:1883"
client-id: "solaroscp-fp-${app.meta.instance-id}"
username: "USERNAME_HERE"
password: "PASSWORD_HERE"
clean-session: true
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: "SolarQueue-${app.meta.instance-id}"
mqtt-stats.log-frequency: 200
mqtt-config:
server-uri: "mqtt://localhost:1883"
client-id: "solaroscp-fp-${app.meta.instance-id}"
username: "USERNAME_HERE"
password: "PASSWORD_HERE"
clean-session: true
connect-timeout-seconds: 10
keep-alive-seconds: 60
read-timeout-seconds: -1
write-timeout-seconds: -1
task.executor:
thread-name-prefix: "SolarOSCP-FP-"
core-pool-size: 10
max-pool-size: 10
allow-core-thread-time-out: true
task.scheduler:
thread-name-prefix: "SolarOSCP-FP-Sched-"
pool-size: 5
remove-on-cancel-policy: true
debug: false
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}"
mybatis:
configuration:
map-underscore-to-camel-case: true
default-fetch-size: 100
default-statement-timeout: 30
configuration-properties:
node-cache-flush: 900000
user-cache-flush: 900000
user-auth-token-cache-flush: 900000
user-node-cache-flush: 900000
mapper-locations:
- "classpath*:net/solarnetwork/central/instructor/dao/mybatis/map/*.xml"
type-aliases-package: >-
net.solarnetwork.central.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: 9084
tomcat.threads:
min-spare: 1
max: 5
spring:
jmx.enabled: false
mvc.format:
date: iso
date-time: iso
time: iso
security:
oauth2:
resourceserver:
jwt:
issuer-uri: "http://localhost/idp/path"
---
spring:
config.activate.on-profile: development
debug: true
---
spring:
config.activate.on-profile: staging
thymeleaf.cache: true
web.resources.cache.period: "1d"
debug: false
server:
forward-headers-strategy: "NATIVE"
---
spring:
config.activate.on-profile: production
thymeleaf.cache: true
web.resources.cache.period: "1d"
debug: false
server:
forward-headers-strategy: "NATIVE"