-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapplication.yaml
More file actions
206 lines (178 loc) · 6 KB
/
Copy pathapplication.yaml
File metadata and controls
206 lines (178 loc) · 6 KB
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
server:
port: 4550
management:
endpoint:
health:
show-details: "always"
endpoints:
web:
base-path: /
exposure:
include: health, info, prometheus
springdoc:
writer-with-order-by-keys: true
show-actuator: true
paths-to-exclude:
- /info
- /health/*
api-docs:
version: openapi_3_0
swagger-ui:
urls:
- name: pre-api
url: /v3/api-docs/pre-api
- name: b2c-api
url: /v3/api-docs/b2c-api
spring:
config:
import: "optional:configtree:/mnt/secrets/pre-hmctskv/"
application:
name: Spring Boot Template
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://${POSTGRES_HOST:localhost}:${POSTGRES_PORT:5432}/${POSTGRES_DATABASE:api}${DB_OPTIONS:}
username: ${POSTGRES_USER:pre}
password: ${POSTGRES_PASSWORD:pre}
properties:
charSet: UTF-8
hikari:
minimumIdle: 2
maximumPoolSize: ${HIKARI_POOL_SIZE:10}
idleTimeout: 10000
poolName: PreHikariCP
maxLifetime: 7200000
connectionTimeout: 30000
jpa:
show-sql: true
hibernate:
ddl-auto: none
database-platform: org.hibernate.dialect.PostgreSQLDialect
properties:
hibernate:
format_sql: true
default_schema: ${spring.datasource.schema}
dialect: org.hibernate.dialect.PostgreSQLDialect
globally_quoted_identifiers: true
jdbc:
lob:
# silence the 'wall-of-text' - unnecessary exception throw about blob types
non_contextual_creation: true
open-in-view: true # https://www.baeldung.com/spring-open-session-in-view may want to disable
azure:
ingestStorage:
accountName: ${AZURE_INGEST_SA:}
connectionString: ${AZURE_INGEST_SA_CONNECTION_STRING:}
finalStorage:
accountName: ${AZURE_FINAL_SA:}
connectionString: ${AZURE_FINAL_SA_CONNECTION_STRING:}
vodafoneStorage:
accountName: ${AZURE_VF_SA:}
connectionString: ${AZURE_VF_SA_CONNECTION_STRING:}
container: ${AZURE_VF_CONTAINER:prod-migration-2}
csvContainer: ${AZURE_VF_CSV_CONTAINER:csv-data}
managedIdentityClientId: ${AZURE_CLIENT_ID:}
tenantId: ${AZURE_TENANT_ID:}
b2c:
clientId: ${AZURE_B2C_CLIENT_ID:} # pre-b2c-user-mgmt Application ID
clientSecret: ${AZURE_B2C_CLIENT_SECRET:}
tenantId: ${AZURE_B2C_TENANT_ID:} # hmcts-stg-external-id directory id
hibernate:
show_sql: true
dbMigration:
# When true, the app will run DB migration on startup.
# Otherwise, it will just check if all migrations have been applied (and fail to start if not).
runOnStartup: ${RUN_DB_MIGRATION_ON_STARTUP:true}
testing-support-endpoints:
enabled: ${TESTING_SUPPORT_ENDPOINTS_ENABLED:false}
mediakind:
subscription: ${MEDIA_KIND_SUBSCRIPTION:pre-mediakind-stg}
subscription-id: ${MEDIA_KIND_SUBSCRIPTION_ID:}
api: https://api.mk.io/api/ams/${MEDIA_KIND_SUBSCRIPTION:}/
accountsApi: https://api.mk.io/api/accounts/${MEDIA_KIND_CUSTOMER_ID:}
token: ${MEDIA_KIND_TOKEN:}
issuer: ${ISSUER:https://sts.windows.net/531ff96d-0ae9-462a-8d2d-bec7c0b42082/}
symmetricKey: ${SYMMETRIC_KEY:}
job-poll-interval: 10000
streaming-endpoint-polling-interval: 2000
vodStreamingEndpoint: ${MEDIA_KIND_VOD_STREAMING_ENDPOINT:default}
liveStreamingEndpoint: ${MEDIA_KIND_LIVE_STREAMING_ENDPOINT:default-live}
location: ${MEDIA_KIND_LOCATION:uksouth-4}
streaming-endpoint-advanced-settings-name: ${MEDIA_KIND_STREAMING_ENDPOINT_ADVANCED_SETTINGS_NAME:}
rtmpsSuffixEnabled: ${RTMPS_SUFFIX_ENABLED:false}
media-service: ${MEDIA_SERVICE:MediaKind}
platform-env: ${PLATFORM_ENV_TAG:Staging}
cron-user-email: ${CRON_USER_EMAIL:test@test.com}
vodafone-user-email: ${VODAFONE_MIGRATION_USER:vodafone@test.com}
nroUsersFilePath: src/integrationTest/resources/Test_NRO_User_Import.csv
email:
service: ${EMAIL_SERVICE:GovNotify}
govNotify:
key: ${GOV_NOTIFY_API_KEY:}
enable: true
portal:
url: ${PORTAL_URL:https://pre-portal.staging.platform.hmcts.net/}
slack:
webhook: ${SLACK_WEBHOOK_URL:}
infobot: ${SLACK_INFOBOT_URL:}
migration:
debug: ${MIGRATION_DEBUG:false}
type: ${MIGRATION_TYPE:FULL}
dryRun: ${DRY_RUN:false}
loggingFile: ${LOGGING_MIGRATION_FILE:}
enableMigratedData: ${ENABLE_MIGRATED_DATA:false}
editing:
enable: ${ENABLE_AUTOMATED_EDITING:true}
tasks:
start-live-event:
batch-size: ${TASK_START_LIVE_EVENTS_BATCH_SIZE:20}
poll-interval: ${TASK_START_LIVE_EVENTS_POLL_INTERVAL:2000}
cleanup-live-events:
batch-size: ${TASK_CLEANUP_LIVE_EVENTS_BATCH_SIZE:3}
cooldown: ${TASK_CLEANUP_LIVE_EVENTS_COOLDOWN:60000} # one minute
job-poll-interval: 10000 # 10 seconds
batch-import-missing-mk-assets:
batch-size: ${TASK_BATCH_IMPORT_MISSING_ASSETS_BATCH_SIZE:50}
poll-interval: ${TASK_BATCH_IMPORT_MISSING_ASSETS_POLL_INTERVAL:10000}
max-sleep-time: ${TASK_BATCH_IMPORT_MISSING_ASSETS_MAX_SLEEP_TIME:1800000}
mp4-source-container: prod-migration-2
capture-session-registration:
processing-timeout-minutes: ${PROCESSING_TIMEOUT_MINUTES:20}
#logging:
# level:
# org.springframework.orm.jpa: DEBUG
# org.springframework.transaction: DEBUG
feature-flags:
enable-enhanced-processing: ${ENABLE_ENHANCED_PROCESSING:false}
hide-reencoded-recordings: ${HIDE_REENCODED_RECORDINGS:true}
cleanup-null-duration:
upsert-enabled: ${ENABLE_NULL_DURATION_UPSERT:false}
#logging:
# level:
# uk:
# gov:
# hmcts:
# reform:
# preapi:
# actuator:
# PreApiHealthIndicator: DEBUG
# component:
# util:
# CommandRunner: DEBUG
# email:
# StopLiveEventNotifierFlowClient: DEBUG
# CaseStateChangeNotifierFlowClient: DEBUG
# media:
# MediaKindClient: DEBUG
# MediaKindAccountsClient: DEBUG
#feign:
# client:
# config:
# mediaKindClient:
# loggerLevel: full
#log4j:
# logger:
# org:
# springframework:
# jdbc: DEBUG
# transaction:
# interceptor: trace