generated from pagopa/template-java-spring-microservice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.yaml
134 lines (129 loc) · 4.09 KB
/
application.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
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
info:
application:
description: '@project.description@'
artifactId: '@project.artifactId@'
version: '@project.version@'
name: '@project.name@'
properties:
environment: ${ENV:azure}
cors:
configuration: '${CORS_CONFIGURATION:''{"origins": ["*"], "methods": ["*"]}''}'
server:
port: '8080'
servlet:
context-path: /
management:
endpoints:
web:
exposure:
include: health,info
jmx:
exposure:
include: health,info
info:
env:
enabled: 'true'
health:
readinessState:
enabled: 'true'
livenessState:
enabled: 'true'
endpoint:
health:
probes:
enabled: 'true'
app:
identifiers:
pagopa-postgres: ${DB_PAGOPA_POSTGRES_SERVICE_IDENTIFIER}
nexi-postgres: ${DB_NEXI_POSTGRES_SERVICE_IDENTIFIER}
nexi-oracle: ${DB_NEXI_ORACLE_SERVICE_IDENTIFIER}
spring:
datasource:
pagopa:
postgres:
url: ${DB_PAGOPA_POSTGRES_URL}
username: ${DB_PAGOPA_POSTGRES_USER}
password: ${DB_PAGOPA_POSTGRES_PASSWORD}
##permette di abilitare/disabilitare il datasource al db Postgres PagoPA
enabled: ${DB_PAGOPA_POSTGRES_ENABLED:'false'}
connection-test-query: select 1
connectionTimeout: ${DB_PAGOPA_POSTGRES_CONNECTION_TIMEOUT}
maxLifetime: ${DB_PAGOPA_POSTGRES_MAX_LIFETIME}
nexi:
oracle:
url: ${DB_NEXI_ORACLE_URL}
username: ${DB_NEXI_ORACLE_USER}
password: ${DB_NEXI_ORACLE_PASSWORD}
##permette di abilitare/disabilitare il datasource al db Oracle Nexi
enabled: ${DB_NEXI_ORACLE_ENABLED:'false'}
connection-test-query: select 1 from dual
connectionTimeout: ${DB_NEXI_ORACLE_CONNECTION_TIMEOUT}
maxLifetime: ${DB_NEXI_ORACLE_MAX_LIFETIME}
postgres:
url: ${DB_NEXI_POSTGRES_URL}
username: ${DB_NEXI_POSTGRES_USER}
password: ${DB_NEXI_POSTGRES_PASSWORD}
##permette di abilitare/disabilitare il datasource al db Postgres Nexi
enabled: ${DB_NEXI_POSTGRES_ENABLED:'false'}
connection-test-query: select 1
connectionTimeout: ${DB_NEXI_POSTGRES_CONNECTION_TIMEOUT}
maxLifetime: ${DB_NEXI_POSTGRES_MAX_LIFETIME}
jpa:
properties:
hibernate:
physical_naming_strategy: it.gov.pagopa.node.cfgsync.config.ViewNamingStrategy
jdbc:
batch_size: 100
show-sql: 'false'
stand-in-manager:
rx-connection-string: ${STAND_IN_MANAGER_RX_CONNECTION_STRING}
rx-name: nodo-dei-pagamenti-stand-in
service:
host: ${STAND_IN_MANAGER_URL}
subscriptionKey: ${STAND_IN_MANAGER_SUBSCRIPTION_KEY}
##permette di abilitare/disabilitare la chiamata al servizio tramite API
enabled: 'true'
sa-connection-string: ${STAND_IN_MANAGER_SA_CONNECTION_STRING}
sa-name: standinevents
consumer-group: nodo-dei-pagamenti-stand-in-sync-rx
consumer:
##permette di abilitare/disabilitare il consumer
enabled: 'true'
write:
##permettono di abilitare/disabilitare la scrittura di stand-in sui vari database
pagopa-postgres: 'true'
nexi-postgres: 'false'
nexi-oracle: 'true'
api-config-cache:
rx-connection-string: ${API_CONFIG_CACHE_RX_CONNECTION_STRING}
rx-name: nodo-dei-pagamenti-cache
service:
host: ${API_CONFIG_CACHE_URL}
subscriptionKey: ${API_CONFIG_CACHE_SUBSCRIPTION_KEY}
##permette di abilitare/disabilitare la chiamata al servizio tramite API
enabled: 'true'
sa-connection-string: ${API_CONFIG_CACHE_SA_CONNECTION_STRING}
sa-name: cacheevents
consumer-group: nodo-dei-pagamenti-cache-sync-rx
consumer:
##permette di abilitare/disabilitare il consumer
enabled: 'true'
write:
##permettono di abilitare/disabilitare la scrittura di cache sui vari database
pagopa-postgres: 'true'
nexi-postgres: 'false'
nexi-oracle: 'true'
riversamento:
enabled: ${RIVERSAMENTO_ENABLED}
source: ${RIVERSAMENTO_SOURCE}
target: ${RIVERSAMENTO_TARGET}
timezone: ${TIMEZONE:Europe/Rome}
logging:
level:
it:
gov:
pagopa: ${APP_LOGGING_LEVEL:INFO}
com:
zaxxer:
hikari: ${HIKARI_LOGGING_LEVEL:INFO}
root: ${DEFAULT_LOGGING_LEVEL:INFO}