-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.yml
121 lines (117 loc) · 3.99 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.probes.enabled: true
endpoints:
enabled-by-default: ${MANAGEMENT_ENDPOINTS_ENABLED:true}
web.exposure.include: '*'
server.port: ${MANAGEMENT_PORT:-1}
metrics:
export:
cloudwatch:
enabled: true
namespace: efgs
batch-size: 20
spring:
application:
name: efgs
lifecycle.timeout-per-shutdown-phase: ${LIFECYCLE_TIMEOUT_PER_SHUTDOWN_PHASE:20s}
datasource:
initialization-mode: never
continue-on-error: false
url: ${DATABASE_URL:jdbc:postgresql://localhost:5432/RADARCOVID?schema=dpppt}
username: ${DATABASE_USER:radarcovid}
password: ${DATABASE_PSW:radarcovid}
hikari:
minimum-idle: ${DATABASE_MIN_IDLE:5}
maximum-pool-size: ${DATABASE_MAX_IDLE:20}
connection-timeout: ${DATABASE_CONNECTION_TIMEOUT:20000}
jpa:
hibernate:
ddl-auto: none
generate-ddl: false
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
generate_statistics: ${HIBERNATE_GENERATE_STATISTICS:false}
jdbc.lob.non_contextual_creation: true
default_schema: ${DATABASE_SCHEMA:dpppt}
# batch
jdbc.batch_size: ${HIBERNATE_BATCH_SIZE:10}
order_inserts: ${HIBERNATE_ORDER_INSERTS:true}
sleuth:
log.slf4j.enabled: true
security:
user:
name: ${SECURITY_USER_NAME:radar}
password: ${SECURITY_USER_PASSWORD}
cloud:
aws:
credentials:
access-key: ${AWS_ACCESS_KEY_ID:}
secret-key: ${AWS_SECRET_KEY:}
region:
auto: ${CLOUD.AWS.REGION.AUTO:false}
static: ${CLOUD.AWS.REGION.STATIC:eu-west-1}
stack:
auto: ${CLOUD.AWS.STACK.AUTO:false}
application:
log:
enabled: ${LOGGABLE_ENABLED:true}
efgs:
retention-days: 6
time-skew: PT2h
country: 'ES'
country-list: BE,BG,CZ,DK,DE,EE,ES,IE,GR,FR,HR,IT,CY,LV,LT,LU,HU,MT,NL,AT,PL,PT,RO,SI,SK,FI,SE,IS,LI,NO,CH
ssl:
enabled: ${EFGS_SSL_ENABLED:true}
key-store: classpath:radarcovid-ta.jks
key-store-password: ${KEYSTORE_PASSWORD:}
trust-store: classpath:radarcovid-ta.jks
trust-store-password: ${TRUSTSTORE_PASSWORD:}
header-fields:
thumbprint: X-SSL-Client-SHA256
distinguished-name: X-SSL-Client-DN
credentials:
signing:
private-key: classpath://nbbs-es-priv.pem
public-key: classpath://nbbs-es-pub.pem
certificate: classpath://nbbs-es-cert.crt
algorithm: RSASSA-PSS
authentication:
certificate: classpath://nbtls-es-cert.crt
content-negotiation:
protobuf-version: 1.0
json-version: 1.0
upload-diagnosis-keys:
enabled: ${EFGS_UPLOAD_DIAGNOSIS_KEYS_ENABLED:true}
default-values:
transmission-risk-level: ${EFGS_DEFAULT_TRANSMISSION_RISK_LEVEL:2}
report-type: ${EFGS_DEFAULT_REPORT_TYPE:CONFIRMED_TEST}
maximum-upload-batch-size: 5000
url: ${EFGS_UPLOAD_DIAGNOSIS_KEYS_URL:}
retry:
max-attempts: ${EFGS_UPLOAD_DIAGNOSIS_KEYS_RETRY_MAX_ATTEMPTS:1}
delay: ${EFGS_UPLOAD_DIAGNOSIS_KEYS_RETRY_DELAY:100}
download-diagnosis-keys:
enabled: ${EFGS_DOWNLOAD_DIAGNOSIS_KEYS_ENABLED:true}
download:
url: ${EFGS_DOWNLOAD_DIAGNOSIS_KEYS_URL:}
retry:
max-attempts: ${EFGS_DOWNLOAD_DIAGNOSIS_KEYS_RETRY_MAX_ATTEMPTS:1}
delay: ${EFGS_DOWNLOAD_DIAGNOSIS_KEYS_RETRY_DELAY:100}
audit:
url: ${EFGS_AUDIT_DOWNLOAD_DIAGNOSIS_KEYS_URL:}
retry:
max-attempts: ${EFGS_AUDIT_DOWNLOAD_DIAGNOSIS_KEYS_RETRY_MAX_ATTEMPTS:1}
delay: ${EFGS_AUDIT_DOWNLOAD_DIAGNOSIS_KEYS_RETRY_DELAY:100}
maximum-download-next-batch-tag: 500
clean-batch-job:
enabled: ${EFGS_CLEAN_BATCH_JOB_ENABLED:true}
retention-months: ${EFGS_CLEAN_BATCH_RETENTION_MONTHS:6}
logging:
pattern:
console: '[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} %c{1} - [%X{TRACKING}] [%X{X-B3-TraceId}] - %msg%n'
level:
root: info
es.gob.radarcovid.federationgateway: warn
es.gob.radarcovid: debug
com.amazonaws: error