-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathapplication.yml
121 lines (115 loc) · 3.24 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
management:
endpoint:
health:
show-details: always
probes:
enabled: true
endpoints:
web:
exposure:
include: "*"
health:
livenessstate:
enabled: true
readinessstate:
enabled: true
logging:
pattern:
console: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:%5p}) %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m %X %n${LOG_EXCEPTION_CONVERSION_WORD:%wEx}"
level:
org.springframework.cloud.stream.function: WARN
spring:
profiles:
active: dev
datasource:
url: ""
username: ""
password: ""
application:
name: "fhir-gateway"
kafka:
bootstrapServers: ${BOOTSTRAP_SERVERS}
security.protocol: ${SECURITY_PROTOCOL:PLAINTEXT}
ssl:
trust-store-type: PKCS12
trust-store-location: file://${SSL_TRUST_STORE:/opt/kafka-certs/ca.p12}
trust-store-password: ${SSL_TRUST_STORE_PASSWORD}
key-store-type: PKCS12
key-store-location: file://${SSL_KEY_STORE_FILE:/opt/kafka-certs/user.p12}
key-store-password: ${SSL_KEY_STORE_PASSWORD}
producer:
compression-type: gzip
key-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: org.miracum.kafka.serializers.KafkaFhirSerializer
cloud:
function.definition: process
stream:
bindings:
process-in-0:
consumer:
concurrency: ${CONSUMER_CONCURRENCY:1}
destination: ${INPUT_TOPIC:fhir.all}
group: ${GROUP_ID:fhir-gateway}
useNativeDecoding: true
process-out-0:
destination: ${OUTPUT_TOPIC:fhir.post-gateway}
producer:
useNativeEncoding: true
kafka:
bindings:
process-in-0:
consumer:
enableDlq: true
configuration:
key.deserializer: org.apache.kafka.common.serialization.StringDeserializer
value.deserializer: org.miracum.kafka.serializers.KafkaFhirDeserializer
process-out-0:
producer:
configuration:
compression.type: ${COMPRESSION_TYPE:gzip}
# 1 MiB = 1048576 Byte
max.request.size: ${KAFKA_PRODUCER_MAX_REQUEST_SIZE:1048576}
binder:
configuration:
max.poll.interval.ms: ${MAX_POLL_INTERVAL_MS:300000}
max.poll.records: ${MAX_POLL_RECORDS:500}
sql:
init:
schema-locations: classpath:/schema.sql
mode: always
services:
loinc:
conversions:
url: ""
enabled: true
failOnError: false
pseudonymizer:
enabled: true
url: ""
fhirServer:
enabled: false
url: ""
auth:
basic:
enabled: false
username: ""
password: ""
psql:
enabled: true
kafka:
enabled: false
generate-output-topic:
match-expression: ""
replace-with: ""
crypto-hash-message-keys:
enabled: false
key: ""
# see <https://commons.apache.org/proper/commons-codec/apidocs/org/apache/commons/codec/digest/HmacAlgorithms.html>
algorithm: "HMAC_SHA_256"
fhir:
systems:
loinc: "http://loinc.org"
app:
version: 3.14.2
features:
use-load-balancer-optimized-connection-pool: false