-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathapplication.yml
144 lines (138 loc) · 5.79 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
server:
port: ${SERVER_PORT:8080}
compression:
enabled: true
mime-types:
- application/json
- application/xml
- text/xml
- text/css
- text/plain
http2:
enabled: true
servlet:
context-path: ${CONTEXT_PATH:}
shutdown: graceful
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:
namespace: verification
batch-size: 20
spring:
application:
name: verification
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=verification}
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:verification}
# batch
jdbc.batch_size: ${HIBERNATE_BATCH_SIZE:10}
order_inserts: ${HIBERNATE_ORDER_INSERTS:true}
redis:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
password: ${REDIS_PSW:}
timeout: ${REDIS_CONNECTION_TIMEOUT:20000}
lettuce:
cluster:
refresh:
period: ${REDIS_REFRESH_PERIOD:PT30M}
adaptive: ${REDIS_REFRESH_ADAPTIVE:true}
sleuth:
log.slf4j.enabled: true
security:
user:
name: ${SECURITY_USER_NAME:radar}
password: ${SECURITY_USER_PASSWORD:radarcovid}
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}
springdoc:
api-docs:
path: /openapi/api-docs
enabled: ${OPENAPI_ENABLED:true}
swagger-ui:
path: /openapi/ui
enabled: ${OPENAPI_ENABLED:true}
application:
retention-days: ${RETENTION_DAYS:14}
cache:
prefix-name: ${CACHE_PREFIX_NAME:verification}
time-to-live: ${CACHE_TIME_TO_LIVE:30} # minutes
response:
retention:
enabled: ${RESPONSE_RETENTION_ENABLED:false}
time:
verify:
code: ${RESPONSE_RETENTION_TIME_VERIFY_CODE:300} # milliseconds
log:
enabled: ${LOGGABLE_ENABLED:true}
openapi:
title: es.gob.radarcovid.verification
description: '@project.description@'
version: '@project.version@'
server: 'https://radarcovid.covid19.gob.es'
terms-of-service: https://radarcovid.covid19.gob.es/terms-of-service/use-conditions.html
security:
enabled: ${OPENAPI_SECURITY_ENABLED:true}
entities:
codes:
max: ${ENTITIES_MAX_CODES:100}
redeem:
code: ${ENTITIES_REDEEM_CODE:7} # days to redeem code
tan: ${ENTITIES_REDEEM_TAN:15} # minutes
random:
code.size: ${VERIFICATION_CODE_SIZE:12}
tan.size: ${VERIFICATION_TAN_SIZE:256}
credentials:
privateKey: ${CREDENTIALS_PRIVATE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Q5QWdFR0JTdUJCQUFqQklIV01JSFRBZ0VCQkVJQTVvRVgvV0srNG1PZlZFK0gKWXVXN2RCUEsvV1JXYS80dGFBU0YxVkx1UHMyMVltVE9BQzdyamk0WmdZWk9scXNVYTc3VndXYmVJZ1RKR25KeAo5bnZhdDNDaGdZa0RnWVlBQkFBYjExQTl1VHdnamJpSnFNOGdvUEJCTmd1eHNkaHkxMTN4SzlFY2lpMUQybjA4Ck5KazloNDc0bzhhU0tFWUpTSnd6MmphL1gzZ2RMV0tPNmhOWmhxcWdDZ0V1dHEzQWh3WTJOOXRXOXZwVFJTbzAKTklCRW9wTEh2SkdOaVU1NEZ6c3V2dDJ3Z3ZrNFY2N2t4UUtJT2JNRkdnaVVWVERLWTBmQ0V0cWFJcW9RdE5qYgovdz09Ci0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K}
publicKey: ${DUMMY_PUBLIC_KEY:LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlHYk1CQUdCeXFHU000OUFnRUdCU3VCQkFBakE0R0dBQVFBRzlkUVBiazhJSTI0aWFqUElLRHdRVFlMc2JIWQpjdGRkOFN2UkhJb3RROXA5UERTWlBZZU8rS1BHa2loR0NVaWNNOW8ydjE5NEhTMWlqdW9UV1lhcW9Bb0JMcmF0CndJY0dOamZiVnZiNlUwVXFORFNBUktLU3g3eVJqWWxPZUJjN0xyN2RzSUw1T0ZldTVNVUNpRG16QlJvSWxGVXcKeW1OSHdoTGFtaUtxRUxUWTIvOD0KLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==}
jwt:
subject: ${JWT_RADAR_SUBJECT:99}
issuer: ${JWT_RADAR_ISSUER:sedia-radarcovid}
onset:
default: ${JWT_ONSET_DEFAULT:5} # días antes si no informan fecha desde app
app: ${JWT_ONSET_APP:2} # días antes si informan fecha desde app
minutes: ${JWT_MINUTES_EXPIRATION:15}
logging:
pattern:
console: '[%-5level] %c{1} - [%X{TRACKING}] [%X{X-B3-TraceId},%X{X-Amz-Cf-Id}] - %msg%n'
level:
root: info
es.gob.radarcovid: debug
com.amazonaws: error