-
Notifications
You must be signed in to change notification settings - Fork 5
/
application.yaml
207 lines (188 loc) · 5.53 KB
/
application.yaml
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
server:
port: 8485
resilience4j:
ratelimiter:
instances:
default:
limitForPeriod: 15
limitRefreshPeriod: 1s
timeoutDuration: 0
management:
endpoint:
health:
show-details: "always"
endpoints:
web:
base-path: /
exposure:
include: health, info
health:
mail:
enabled: false
idam:
s2s-auth:
url: ${S2S_URL}
# liveness alert settings depend on application name, if it is changed alert configuration must also be adjusted
# https://github.com/hmcts/bulk-scan-shared-infrastructure/blob/master/liveness-alert.tf
spring:
application:
name: Send Letter Service
config:
import: "optional:configtree:/mnt/secrets/rpe-send-letter/"
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://${LETTER_TRACKING_DB_HOST:send-letter-database}:${LETTER_TRACKING_DB_PORT:5440}/${LETTER_TRACKING_DB_NAME:letter_tracking}${LETTER_TRACKING_DB_CONN_OPTIONS:}
username: ${LETTER_TRACKING_DB_USER_NAME:letterservice}
password: ${LETTER_TRACKING_DB_PASSWORD:}
properties:
charSet: UTF-8
hikari:
minimumIdle: 2
maximumPoolSize: 30
idleTimeout: 10000
poolName: SendLetterHikariCP
maxLifetime: 7200000
connectionTimeout: 30000
jpa:
properties:
hibernate:
jdbc:
lob:
# silence the 'wall-of-text' - unnecessary exception throw about blob types
non_contextual_creation: true
mail:
host: ${SMTP_HOST}
username: ${SMTP_USERNAME}
password: ${SMTP_PASSWORD}
port: 587
properties:
mail:
smtp:
auth: true
starttls:
enable: true
test-connection: true
reports:
upload-summary:
cron: ${UPLOAD_SUMMARY_REPORT_CRON:0 0 19 * * *}
enabled: ${UPLOAD_SUMMARY_REPORT_ENABLED:false}
recipients: ${UPLOAD_SUMMARY_REPORT_RECIPIENTS:}
ftp-uploaded-letters-summary:
cron: ${FTP_UPLOADED_LETTERS_SUMMARY_REPORT_CRON:45 59 15 * * *}
enabled: ${FTP_UPLOADED_LETTERS_SUMMARY_REPORT_ENABLED:false}
recipients: ${UPLOAD_SUMMARY_REPORT_RECIPIENTS:}
service-config:
- service: cmc_claim_store
display-name: CMC
- service: civil_service
display-name: OCMC
- service: send_letter_tests
display-name: Bulk Print
- service: divorce_frontend
display-name: Divorce
- service: probate_backend
display-name: Probate
- service: sscs
display-name: SSCS
- service: finrem_document_generator
display-name: FINREM
- service: finrem_case_orchestration
display-name: FINREM
- service: fpl_case_service
display-name: FPLA
- service: prl_cos_api
display-name: PRIVATELAW
- service: civil_general_applications
display-name: general_applications
delayed-stale-report:
cron: ${DELAYED_STALE_REPORT_CRON:0 0 13 * * *}
enabled: ${DELAYED_STALE_REPORT_ENABLED:false}
recipients: ${DELAYED_STALE_REPORT_RECIPIENTS:}
flyway:
user: ${LETTER_TRACKING_DB_USER_NAME}
password: ${LETTER_TRACKING_DB_PASSWORD}
ftp:
hostname: ${FTP_HOSTNAME}
port: ${FTP_PORT}
target-folder: ${FTP_TARGET_FOLDER}
smoke-test-target-folder: ${FTP_SMOKE_TEST_TARGET_FOLDER:SMOKE_TEST}
reports-folder: ${FTP_REPORTS_FOLDER}
reports-cron: ${FTP_REPORTS_CRON:"30 59 15 * * ?"}
fingerprint: ${FTP_FINGERPRINT}
username: ${FTP_USER}
privateKey: ${FTP_PRIVATE_KEY}
publicKey: ${FTP_PUBLIC_KEY}
downtime:
from: ${FTP_DOWNTIME_FROM:16:00}
to: ${FTP_DOWNTIME_TO:17:00}
service-folders:
- service: cmc_claim_store
folder: CMC
- service: civil_service
folder: CMC
enabled: ${CIVIL_SERVICE_ENABLED:false}
- service: civil_general_applications
folder: CMC
- service: send_letter_tests
folder: BULKPRINT
- service: nfdiv_case_api
folder: NFDIVORCE
- service: divorce_frontend
folder: DIVORCE
- service: probate_backend
folder: PROBATE
- service: sscs
folder: SSCS
- service: finrem_document_generator
folder: FINREM
- service: finrem_case_orchestration
folder: FINREM
- service: fpl_case_service
folder: FPL
- service: prl_cos_api
folder: PRIVLAW
scheduling:
enabled: ${SCHEDULING_ENABLED:false}
lock_at_most_for: ${SCHEDULING_LOCK_AT_MOST_FOR:PT10M} # 10 minutes in ISO-8601
tasks:
upload-letters:
interval-ms: ${UPLOAD_LETTERS_INTERVAL:30000}
db-poll-delay: ${DB_POLL_DELAY:2}
mark-letters-posted:
cron: ${FTP_REPORTS_CRON:0 30 * * * *}
stale-letters-report:
cron: ${STALE_LETTERS_REPORT_CRON:0 30 11 * * *}
pending-letters-report:
cron: ${PENDING_LETTERS_REPORT_CRON:0 0 9 * * *}
before-mins: ${PENDING_LETTERS_BEFORE:15}
file-cleanup:
enabled: ${FILE_CLEANUP_ENABLED:false}
cron: ${FILE_CLEANUP_CRON:0 15 * * * *}
ttl: 12h
old-letter-content-cleanup:
enabled: ${OLD_LETTER_CONTENT_CLEANUP_ENABLED:false}
cron: ${OLD_LETTER_CONTENT_CLEANUP_CRON:0 0 7 * * *}
ttl: P31D
encryption:
enabled: ${ENCRYPTION_ENABLED:false}
publicKey: ${ENCRYPTION_PUBLIC_KEY:}
stale-letters:
min-age-in-business-days: 2
async:
threadpool-size: ${ASYNC_THREADPOOL_SIZE:20}
file-upoad:
retries: ${DEFAULT_RETRIES:5}
wait-time-in-ms: ${DEFAULT_WAIT_TIME_IN_MS:2000}
springdoc:
packagesToScan: uk.gov.hmcts.reform.sendletter
pathsToMatch: /**
swagger-ui:
use-root-path: true
actions:
api-key: ${ACTIONS_API_KEY}
documents:
duplicate:
cut-off-time: ${DUPLICATES_CUT_OFF_TIME:1}
launchdarkly:
sdk-key: ${LAUNCH_DARKLY_SDK_KEY:XXXXX}
offline-mode: ${LAUNCH_DARKLY_OFFLINE_MODE:false}