-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication-client.yaml
55 lines (55 loc) · 2.27 KB
/
application-client.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
client:
local-folder: ${cdrClient.localFolder:${java.io.tmpdir}/cdr_download}
idp-credentials:
tenant-id: ${CDR_B2C_TENANT_ID:test-tenant-id} # `test-tenant-id` is the required value if the MockOauth2Server is used; see its `config.json`
client-id: ${CDR_CLIENT_ID:test-client-id}
# Do not define the `client-secret` property here; defining the property here effectively prevents the password-auto-renewal from working
# as the internal yaml file cannot be updated and the property also cannot be overridden in an external file as that would lead to two secret
# locations, which currently also fails the update
scopes:
- https://${CDR_CLIENT_SCOPE_PREFIX:}identity.health.swisscom.ch/CdrApi/.default
renew-credential-at-startup: ${CDR_CLIENT_RENEW_CREDENTIAL_AT_STARTUP:false}
idp-endpoint: https://login.microsoftonline.com/${client.idp-credentials.tenant-id}/
schedule-delay: PT10M
files-in-progress-cache-size: 10MB
connection-timeout-ms: 5000
#we want the read timeout to be longer than a connection timeout between backend and db
read-timeout-ms: 35000
# max number of connectors to be processed in parallel, one download per connector at any given time
pull-thread-pool-size: 5
# max number of parallel document uploads (independent of connector)
push-thread-pool-size: 5
retry-delay:
- 1s
- 2s
- 8s
- 32s
- 10m
file-busy-test-interval: 250ms
file-busy-test-timeout: 30s
file-busy-test-strategy: never_busy # valid values are `never_busy`, `file_size_changed`, `always_busy`
retry-template:
retries: 5
initial-delay: 250ms
multiplier: 5.0
max-delay: 10m
cdr-api:
scheme: https
port: 443
# host: dev-cdr-functions.azurewebsites.net
base-path: api/documents
credential-api:
scheme: ${client.cdr-api.scheme}
port: ${client.cdr-api.port}
host: ${client.cdr-api.host}
base-path: api/client-credentials
customer:
# MUST BE SET IN ENVIRONMENT
# - connector-id: 1
# content-type: application/forumdatenaustausch+xml;charset=UTF-8
# target-folder: /tmp/download
# source-folder: /tmp/upload
# upload-archive-enabled: true
# upload-archive-folder: /tmp/upload/success
# upload-error-folder: /tmp/upload/error
# mode: test|production