From f4400d18a1770b88c74fa2eb3933cf9f90116555 Mon Sep 17 00:00:00 2001 From: pfarina Date: Tue, 17 Dec 2024 13:14:12 +0100 Subject: [PATCH] Adding application.properties configuration for each service composing GTW --- .../config/application.properties | 64 +++++++ .../config/application.properties | 168 ++++++++++++++++++ .../config/application.properties | 110 ++++++++++++ .../config/application.properties | 137 ++++++++++++++ .../config/application.properties | 118 ++++++++++++ .../config/application.properties | 98 ++++++++++ .../config/application.properties | 66 +++++++ .../config/application.properties | 127 +++++++++++++ .../config/application.properties | 100 +++++++++++ 9 files changed, 988 insertions(+) create mode 100644 it-fse-gtw-config/config/application.properties create mode 100644 it-fse-gtw-dispatcher/config/application.properties create mode 100644 it-fse-gtw-garbage/config/application.properties create mode 100644 it-fse-gtw-indexer/config/application.properties create mode 100644 it-fse-gtw-ini-client/config/application.properties create mode 100644 it-fse-gtw-log-collector/config/application.properties create mode 100644 it-fse-gtw-status-check/config/application.properties create mode 100644 it-fse-gtw-status-manager/config/application.properties create mode 100644 it-fse-gtw-validator/config/application.properties diff --git a/it-fse-gtw-config/config/application.properties b/it-fse-gtw-config/config/application.properties new file mode 100644 index 0000000..1194e09 --- /dev/null +++ b/it-fse-gtw-config/config/application.properties @@ -0,0 +1,64 @@ +####################################### +# Application name +####################################### +server.port=8081 +spring.application.name=gtw-config +server.servlet.context-path=/ + +####################################### +# Application monitoring +####################################### +info.app.name=Gateway Config - FSE 2.0 +info.app.description=Gateway Config for FSE 2.0 +info.app.version=1.0.0_SPRINT6 + +management.server.port=8081 +management.endpoints.web.base-path=/ +management.endpoints.web.path-mapping.live=status +management.endpoints.web.path-mapping.health=health/ready +management.endpoint.metrics.enabled=true +management.endpoint.prometheus.enabled=true +management.endpoints.web.path-mapping.prometheus=metrics +management.endpoints.web.path-mapping.metrics=actuator +management.endpoints.web.exposure.include=health,metrics,prometheus,live,ready,env,info +management.health.db.enabled=true +management.endpoint.health.show-details=always + +####################################### +# Open API +####################################### +springdoc.swagger-ui.path=/openapi/ui +springdoc.show-actuator=true + +docs.info.contact.name=Mario Rossi +docs.info.contact.mail=example@mail.com +docs.info.contact.url=www.example.com +docs.info.termsOfService=www.terms.com +docs.info.summary=Handles configuration items for all other microservices +docs.info.description=Handles configuration items for all other microservices +docs.info.api-id=1 +docs.info.title=Gateway Config + +####### LOGGING OUTPUT FORMAT ############ +# Must be one of console, json +####################################### +log.output.format=console +log.elastic-search.enable=false +logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=DEBUG + +####################################### +# DISABLE NULL ON JSON +####################################### +spring.jackson.default-property-inclusion = NON_NULL + +####################################### +# DATASOURCE DB +####################################### +data.mongodb.uri=${MONGO_URI_SRV}${MONGO_USER}:${MONGO_PASSWORD}@${MONGO_ADDRESS}${MONGO_SUFFIX} +data.mongodb.max.staleness=91 +data.mongodb.schema-name= FSE_GTW + +################### +# GATEWAY NAME # +################### +gateway.full-qualified-name=FSE2-GTW-00 diff --git a/it-fse-gtw-dispatcher/config/application.properties b/it-fse-gtw-dispatcher/config/application.properties new file mode 100644 index 0000000..7c28c31 --- /dev/null +++ b/it-fse-gtw-dispatcher/config/application.properties @@ -0,0 +1,168 @@ +####################################### +# Application name +####################################### +server.port=8081 +spring.application.name=gtw-dispatcher +server.servlet.context-path=/ + +####################################### +# Application monitoring +####################################### +info.app.name=Gateway Dispatcher - FSE 2.0 +info.app.description=Gateway Dispatcher for FSE 2.0 +info.app.version=1.0.0_SPRINT6 + +management.server.port=8081 +management.endpoints.web.base-path=/ +management.endpoints.web.path-mapping.live=status +management.endpoints.web.path-mapping.health=health/ready +management.endpoint.metrics.enabled=true +management.endpoint.prometheus.enabled=true +management.endpoints.web.path-mapping.prometheus=metrics +management.endpoints.web.path-mapping.metrics=actuator +management.endpoints.web.exposure.include=health,metrics,prometheus,live,ready,env,info +management.health.db.enabled=true +management.endpoint.health.show-details=always + +####################################### +# Open API +####################################### +springdoc.swagger-ui.path=/openapi/ui +springdoc.show-actuator=true + +docs.info.contact.name=Mario Rossi +docs.info.contact.mail=mariorossi@ibm.com +docs.info.contact.url=www.example.com +docs.info.termsOfService=www.terms.com +docs.info.summary=Handles and enroutes all the CDA validations and/or publications +docs.info.description=Handles and enroutes all the CDA validations and/or publications +docs.info.api-id=1 +docs.info.title=Gateway Dispatcher +validation.file-max-size=1000 + +spring.servlet.multipart.max-file-size=5MB + +####### LOGGING OUTPUT FORMAT ############ +# Must be one of console, json +####################################### +log.output.format=console +logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=INFO +log.elastic.level=trace +log.kafka-log.enable=true + +####################################### +# DISABLE NULL ON JSON +####################################### +spring.jackson.default-property-inclusion = NON_NULL + +####################################### +# DATASOURCE DB +####################################### +data.mongodb.uri=${MONGO_URI_SRV}${MONGO_USER}:${MONGO_PASSWORD}@${MONGO_ADDRESS}${MONGO_SUFFIX} +data.mongodb.schema-name= FSE_GTW + +####################################### +# KAFKA +####################################### +####KAFKA CONNECTION SETTINGS ########## +kafka.bootstrap-servers=${KAFKA_ADDRESS} +spring.sleuth.messaging.kafka.enabled=false +kafka.properties.security.protocol=SASL_SSL +kafka.properties.sasl.mechanism=OAUTHBEARER +kafka.properties.sasl.jaas.config=org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule required; +kafka.properties.ssl.truststore.location= +kafka.properties.ssl.truststore.password= +kafka.properties.request.timeout.ms= +kafka.oauth.tenantId=${TENANT_ID} +kafka.oauth.appId=${APP_ID} +kafka.oauth.pfxPathName=${PFX_NAME_RESOURCE_PATH} +kafka.oauth.pwd=${PFX_PASSWORD} + +####### KAFKA PRODUCER SETTINGS ################ +kafka.producer.client-id=springboot-gtw-dispatcher +kafka.producer.retries=5 +kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer +kafka.producer.value-serializer=org.apache.kafka.common.serialization.StringSerializer +kafka.producer.transactional.id= +kafka.producer.enable.idempotence=true +kafka.producer.ack=all + +###### KAFKA CODE ########## +kafka.statusmanager.topic=MDS-SA-0004_FU_001_STATUS +kafka.dispatcher-indexer.base-topic=MDS-SA-0004_FU_001_INI +kafka.dispatcher-indexer.delete-retry-topic=MDS-SA-0004_FU_001_INI-DEL-RTY +kafka.dispatcher-publisher.base-topic=MDS-SA-0004_FU_001_TS_EDS +kafka.dispatcher-indexer.update-retry-topic=MDS-SA-0004_FU_001_INI-UPD-RTY +kafka.log.base-topic=MDS-SA-0004_FU_001_LOG + +####### PRIORITY DOCUMENTS -> LIST OF DOCUMENTS COMMA SEPARATED ####### +# TODO +document-type.priority.low=ESE,CER,VRB +document-type.priority.medium=RIC,SUM,TAC,PRS,PDC +document-type.priority.high=VAC,PRE,WOR,LDO,REF + +####################################### +# CDA Properties +####################################### +cda.attachment.name=cda.xml + +####################################### +# Circuit breaker +####################################### + +# >80% fail in sliding-window => open circuit +resilience4j.circuitbreaker.configs.default.failure-rate-threshold=80 +# size sliding-window +resilience4j.circuitbreaker.configs.default.sliding-window-size=10 +# unit of sliding-window-size (COUNT_BASED vs TIME_BASED) +resilience4j.circuitbreaker.configs.default.sliding-window-type=COUNT_BASED +# minimum size of sliding-window to start check failure rate +resilience4j.circuitbreaker.configs.default.minimum-number-of-calls=5 +#include the half-open state +resilience4j.circuitbreaker.configs.default.automatic-transition-from-open-to-half-open-enabled=true +# size sliding-window in half-open state (used same rate threshold) +resilience4j.circuitbreaker.configs.default.permitted-number-of-calls-in-half-open-state=4 +#delay from open to half-open state +resilience4j.circuitbreaker.configs.default.wait-duration-in-open-state=1s + +####################################### +# Microservices url +####################################### +ms.url.gtw-validator-service=http://it-fse-gtw-validator.${SERVICE_ADDRESS} +ms.url.gtw-fhir-mapping-engine-service=http://it-fse-gtw-fhir-mapping-engine.${SERVICE_ADDRESS} +ms.url.eds-client-service= +ms.url.ini-client-service= +ms.url.gtw-config=http://it-fse-gtw-config.${SERVICE_ADDRESS} +ms.url.status-check-client-service=http://it-fse-gtw-status-check.${SERVICE_ADDRESS} +ms.url.ana-service= +ms.ana-service.enable-validation=false + +####################################### +# FISCAL CODE PROPERTY +####################################### +validation.allow-special-fiscal-code= + +####################################### +# DAYS OLDEST PUBLICATION +####################################### +days.allow-publish-after-validation=5 + +ms-calls.are-from-govway=true + +jwt.claims-required=false + +accreditation.enable-check=true + +sign.choose-validation-type=DISABLED +jwt.ts.issuer=integrity:S1#TS + + +####################################### +# BENCHMARK PROPERTY +####################################### +benchmark.enable=true + +###################################### +# TIME RATE REFRESH CONFIG (milliseconds) +###################################### +ms.config.refresh-rate=900000 \ No newline at end of file diff --git a/it-fse-gtw-garbage/config/application.properties b/it-fse-gtw-garbage/config/application.properties new file mode 100644 index 0000000..f4e243d --- /dev/null +++ b/it-fse-gtw-garbage/config/application.properties @@ -0,0 +1,110 @@ +####################################### +# Application name +####################################### +server.port=8081 +spring.application.name=gtw-garbage +server.servlet.context-path=/ + +####################################### +# Application monitoring +####################################### +info.app.name=Gateway Garbage - FSE 2.0 +info.app.description=Gateway Garbage for FSE 2.0 +info.app.version=1.0.0_SPRINT6 + +management.server.port=8081 +management.endpoints.web.base-path=/ +management.endpoints.web.path-mapping.live=status +management.endpoints.web.path-mapping.health=health/ready +management.endpoint.metrics.enabled=true +management.endpoint.prometheus.enabled=true +management.endpoints.web.path-mapping.prometheus=metrics +management.endpoints.web.path-mapping.metrics=actuator +management.endpoints.web.exposure.include=health,metrics,prometheus,live,ready,env,info +management.health.db.enabled=true +management.endpoint.health.show-details=always + +####################################### +# Open API +####################################### +springdoc.swagger-ui.path=/openapi/ui +springdoc.show-actuator=true + +docs.info.contact.name=Mario Rossi +docs.info.contact.mail=mariorossi@ibm.com +docs.info.contact.url=www.example.com +docs.info.termsOfService=www.terms.com +docs.info.summary=Performs Garbage manage +docs.info.description=Performs Garbage manage +docs.info.api-id=1 +docs.info.title=Gateway Garbage + +####### LOGGING OUTPUT FORMAT ############ +# Must be one of console, json +####################################### +log.output.format=console +log.elastic-search.enable=false +logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=DEBUG + +####################################### +# DISABLE NULL ON JSON +####################################### +spring.jackson.default-property-inclusion = NON_NULL + +####################################### +# DATASOURCE DB +####################################### +data.mongodb.uri=${MONGO_URI_SRV}${MONGO_USER}:${MONGO_PASSWORD}@${MONGO_ADDRESS}${MONGO_SUFFIX} +transactions.mongodb.uri=${MONGO_URI_SRV}${MONGO_USER}:${MONGO_PASSWORD}@${MONGO_ADDRESS}${MONGO_SUFFIX} +valdoc.mongodb.uri=${MONGO_URI_SRV}${MONGO_USER}:${MONGO_PASSWORD}@${MONGO_ADDRESS}${MONGO_SUFFIX} +rules.mongodb.uri=${MONGO_URI_SRV}${MONGO_USER}:${MONGO_PASSWORD}@${MONGO_ADDRESS}${MONGO_SUFFIX} +data.mongodb.max.staleness=91 +transactions.mongodb.max.staleness=91 +valdoc.mongodb.max.staleness=91 +rules.mongodb.max.staleness=91 + +data.mongodb.schema-name= FSE_GTW + +####################################### +# KAFKA +####################################### +spring.sleuth.messaging.kafka.enabled=false +####KAFKA CONNECTION SETTINGS ########## +kafka.bootstrap-servers=${KAFKA_ADDRESS} +kafka.properties.security.protocol=SASL_SSL +kafka.properties.sasl.mechanism=OAUTHBEARER +kafka.properties.sasl.jaas.config=org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule required; +kafka.properties.ssl.truststore.location= +kafka.properties.ssl.truststore.password= +kafka.properties.request.timeout.ms= +kafka.oauth.tenantId=${TENANT_ID} +kafka.oauth.appId=${APP_ID} +kafka.oauth.pfxPathName=${PFX_NAME_RESOURCE_PATH} +kafka.oauth.pwd=${PFX_PASSWORD} +kafka.enablessl=true + + +kafka.producer.client-id=springboot-gtw-garbage + +####################################### +# DATA RETENTION RULES +####################################### +retention.transactions-query.limit=500 + +####################################### +# DATA RETENTION RULES +####################################### +ms.url.gtw-config=http://it-fse-gtw-config.${SERVICE_ADDRESS} + +####################################### +# Configurazione scheduler : +# secondi, minuti, ore, giorni del mese, mese, giorni della settimana +####################################### +scheduler.data-retention=0 0 * * * * +scheduler.valdoc-retention=0 0 * * * * +scheduler.rules-retention=0 0 * * * * + +###################################### +# TIME RATE REFRESH CONFIG (milliseconds) +###################################### +ms.config.refresh-rate=900000 diff --git a/it-fse-gtw-indexer/config/application.properties b/it-fse-gtw-indexer/config/application.properties new file mode 100644 index 0000000..b975685 --- /dev/null +++ b/it-fse-gtw-indexer/config/application.properties @@ -0,0 +1,137 @@ +####################################### +# Application name +####################################### +server.port=8081 +spring.application.name=gtw-indexer +server.servlet.context-path=/ + +####################################### +# Application monitoring +####################################### +info.app.name=Gateway Indexer - FSE 2.0 +info.app.description=Gateway Indexer for FSE 2.0 +info.app.version=1.0.0_IPPOCRATE + +management.server.port=8081 +management.endpoints.web.base-path=/ +management.endpoints.web.path-mapping.live=status +management.endpoints.web.path-mapping.health=health/ready +management.endpoint.metrics.enabled=true +management.endpoint.prometheus.enabled=true +management.endpoints.web.path-mapping.prometheus=metrics +management.endpoints.web.path-mapping.metrics=actuator +management.endpoints.web.exposure.include=health,metrics,prometheus,live,ready,env,info +management.health.db.enabled=true +management.endpoint.health.show-details=always + +####################################### +# Open API +####################################### +springdoc.swagger-ui.path=/openapi/ui +springdoc.show-actuator=true + +docs.info.contact.name=Mario Rossi +docs.info.contact.mail=mariorossi@ibm.com +docs.info.contact.url=www.example.com +docs.info.termsOfService=www.terms.com +docs.info.summary=Performs Indexer manage +docs.info.description=Performs Indexer manage +docs.info.api-id=1 +docs.info.title=Gateway Indexer + +####### LOGGING OUTPUT FORMAT ############ +# Must be one of console, json +####################################### +log.output.format=console +logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=DEBUG +logging.level.org.springframework.web=DEBUG + +####################################### +# DISABLE NULL ON JSON +####################################### +spring.jackson.default-property-inclusion = NON_NULL + +####################################### +# KAFKA +####################################### +spring.sleuth.messaging.kafka.enabled=false + +####KAFKA CONNECTION SETTINGS ########## +kafka.bootstrap-servers=${KAFKA_ADDRESS} +spring.sleuth.messaging.kafka.enabled=false +kafka.properties.security.protocol=SASL_SSL +kafka.properties.sasl.mechanism=OAUTHBEARER +kafka.properties.sasl.jaas.config=org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule required; +kafka.properties.ssl.truststore.location= +kafka.properties.ssl.truststore.password= +kafka.properties.request.timeout.ms= +kafka.oauth.tenantId=${TENANT_ID} +kafka.oauth.appId=${APP_ID} +kafka.oauth.pfxPathName=${PFX_NAME_RESOURCE_PATH} +kafka.oauth.pwd=${PFX_PASSWORD} + + +####### KAFKA PRODUCER SETTINGS ################ +kafka.producer.client-id=springboot-gtw-indexer +kafka.producer.retries=5 +kafka.producer.key-serializer= org.apache.kafka.common.serialization.StringSerializer +kafka.producer.value-serializer= org.apache.kafka.common.serialization.StringSerializer +kafka.producer.transactional.id=gtwindexer.tx. +kafka.producer.enable.idempotence=true +kafka.producer.ack=all + +#######KAFKA CONSUMER SETTING################ +kafka.consumer.client-id=springboot-gtw-indexer +kafka.consumer.client-id.low=low-priority +kafka.consumer.client-id.medium=medium-priority +kafka.consumer.client-id.high=high-priority +kafka.consumer.client-id.retry-delete=retry-delete + +kafka.consumer.group-id=fse-indexer +kafka.consumer.bootstrap-servers=${KAFKA_ADDRESS} +kafka.consumer.key-deserializer= org.apache.kafka.common.serialization.StringDeserializer +kafka.consumer.value-deserializer=org.apache.kafka.common.serialization.StringDeserializer +kafka.consumer.auto-offset-reset=earliest +kafka.consumer.isolation.level=read_committed +kafka.consumer.auto-commit=false +kafka.consumer.client-id.retry-update=retry-update + +###### KAFKA TOPIC ########## +# Consumer +kafka.dispatcher-indexer.topic.low-priority=MDS-SA-0004_FU_001_INI_LOW +kafka.dispatcher-indexer.topic.medium-priority=MDS-SA-0004_FU_001_INI_MEDIUM +kafka.dispatcher-indexer.topic.high-priority=MDS-SA-0004_FU_001_INI_HIGH +kafka.dispatcher-indexer.deadletter.topic=MDS-SA-0004_FU_001_INI-DLT +kafka.dispatcher-indexer.delete-retry-topic=MDS-SA-0004_FU_001_INI-DEL-RTY +kafka.dispatcher-indexer.update-retry-topic=MDS-SA-0004_FU_001_INI-UPD-RTY +# Producer +kafka.indexer-publisher.topic=MDS-SA-0004_FU_001_EDS +kafka.statusmanager.topic=MDS-SA-0004_FU_001_STATUS +event.topic.auto.start=true + +kafka.log.base-topic=MDS-SA-0004_FU_001_LOG + +kafka.consumer.group-id-high=fse-indexer-high +kafka.consumer.group-id-medium=fse-indexer-medium +kafka.consumer.group-id-low=fse-indexer-low +kafka.consumer.group-id-common=fse-indexer-common + +####### KAFKA DEAD LETTER ##################### +kafka.consumer.dead-letter-exc={'it.finanze.sanita.fse2.ms.gtwindexer.exceptions.NoRecordFoundException','it.finanze.sanita.fse2.ms.gtwindexer.exceptions.BlockingIniException','it.finanze.sanita.fse2.ms.gtwindexer.exceptions.BusinessException','java.lang.NullPointerException'} +kafka.consumer.temporary-exc={'org.springframework.web.client.ResourceAccessException','java.net.ConnectException','java.net.SocketException'} +kafka.retry=3 + +####################################### +# Microservices url +####################################### +ms.url.ini-client-service= + +ms.url.gtw-ini-client-service=http://it-fse-gtw-ini-client.${SERVICE_ADDRESS} +ms.url.gtw-config=http://it-fse-gtw-config.${SERVICE_ADDRESS} + +accreditation.enable-check=true + +###################################### +# TIME RATE REFRESH CONFIG (milliseconds) +###################################### +ms.config.refresh-rate=900000 diff --git a/it-fse-gtw-ini-client/config/application.properties b/it-fse-gtw-ini-client/config/application.properties new file mode 100644 index 0000000..b0941aa --- /dev/null +++ b/it-fse-gtw-ini-client/config/application.properties @@ -0,0 +1,118 @@ +####################################### +# Application name +####################################### +server.port=8081 +spring.application.name=gtw-ini-client +server.servlet.context-path=/ + +####################################### +# Application monitoring +####################################### +info.app.name=Gateway Ini client - FSE 2.0 +info.app.description=Gateway Ini client for FSE 2.0 +info.app.version=1.0.0_IPPOCRATE + +management.server.port=8081 +management.endpoints.web.base-path=/ +management.endpoints.web.path-mapping.live=status +management.endpoints.web.path-mapping.health=health/ready +management.endpoint.metrics.enabled=true +management.endpoint.prometheus.enabled=true +management.endpoints.web.path-mapping.prometheus=metrics +management.endpoints.web.path-mapping.metrics=actuator +management.endpoints.web.exposure.include=health,metrics,prometheus,live,ready,env,info +management.health.db.enabled=true +management.endpoint.health.show-details=always + +####################################### +# Open API +####################################### +springdoc.swagger-ui.path=/openapi/ui +springdoc.show-actuator=true + +docs.info.contact.name=Mario Rossi +docs.info.contact.mail=mariorossi@ibm.com +docs.info.contact.url=www.example.com +docs.info.termsOfService=www.terms.com +docs.info.summary=Gateway INI client +docs.info.description=GatewayINI client +docs.info.api-id=1 +docs.info.title=Gateway INI client + +####### LOGGING OUTPUT FORMAT ############ +# Must be one of console, json +####################################### +log.output.format=console +log.kafka-log.enable=true +log.level=trace +log.elastic-search.enable=false +logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=DEBUG + +####################################### +# DISABLE NULL ON JSON +####################################### +spring.jackson.default-property-inclusion = NON_NULL + +####################################### +# DATASOURCE DB +####################################### +data.mongodb.uri=${MONGO_URI_SRV}${MONGO_USER}:${MONGO_PASSWORD}@${MONGO_ADDRESS}${MONGO_SUFFIX} +data.mongodb.max.staleness=91 +data.mongodb.schema-name= FSE_GTW + +####################################### +# KAFKA +####################################### +spring.sleuth.messaging.kafka.enabled=false +####KAFKA CONNECTION SETTINGS ########## +kafka.bootstrap-servers=${KAFKA_ADDRESS} +kafka.properties.security.protocol=SASL_SSL +kafka.properties.sasl.mechanism=OAUTHBEARER +kafka.properties.sasl.jaas.config=org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule required; +kafka.properties.ssl.truststore.location= +kafka.properties.ssl.truststore.password= +kafka.properties.request.timeout.ms= +kafka.oauth.tenantId=${TENANT_ID} +kafka.oauth.appId=${APP_ID} +kafka.oauth.pfxPathName=${PFX_NAME_RESOURCE_PATH} +kafka.oauth.pwd=${PFX_PASSWORD} +kafka.enablessl=true +kafka.log.base-topic=MDS-SA-0004_FU_001_LOG + +kafka.producer.client-id=springboot-gtw-ini-client + +####################################### +# INI CONFIG +####################################### +# TODO +ini.client.enable-ssl=false +ini.client.mock-enable=true +ini.client.enable-log=false + +ini.client.auth-cert.path=/config/resources/security/A1GTW-INI.jks +ini.client.auth-cert.password=${A1GTW-INI_PASSWORD} +ini.client.auth-cert.alias= + +# KeyStore -> Digital Signature SAML +ini.client.ds-cert.path=/config/resources/security/S1GTW-INI.jks +ini.client.ds-cert.password=${S1GTW-INI_PASSWORD} +ini.client.ds-cert.alias= + +ini.client.document-registry-service= +ini.client.delete-service= +ini.client.recupero-riferimento-service= +ini.client.update-document-registry-service= + +ms.url.gtw-config=http://it-fse-gtw-config.${SERVICE_ADDRESS} + + +####################################### +# POST CRASH PROGRAM (SOLO IN VALIDAZIONE POPOLATA) +####################################### +ms.url.gtw-crash-program-validator= +spring.jackson.time-zone=Europe/Rome + +###################################### +# TIME RATE REFRESH CONFIG (milliseconds) +###################################### +ms.config.refresh-rate=900000 \ No newline at end of file diff --git a/it-fse-gtw-log-collector/config/application.properties b/it-fse-gtw-log-collector/config/application.properties new file mode 100644 index 0000000..4ecbd65 --- /dev/null +++ b/it-fse-gtw-log-collector/config/application.properties @@ -0,0 +1,98 @@ +server.port=9097 +spring.application.name=gtw-log-collector +server.servlet.context-path=/ + +####### APPLICATION MONITORING ################ +info.app.name=Gtw Log collector +info.app.description=Gtw Log collector for FSE +info.app.version=1.0.0 + +management.server.port=9097 +management.endpoints.web.base-path=/ +management.endpoints.web.path-mapping.live=status +management.endpoints.web.path-mapping.health=health/ready +management.endpoint.metrics.enabled=true +management.endpoint.prometheus.enabled=true +management.endpoints.web.path-mapping.prometheus=metrics +management.endpoints.web.path-mapping.metrics=actuator +management.endpoints.web.exposure.include=health,metrics,prometheus,live,ready,env,info +management.health.db.enabled=true +management.endpoint.health.show-details=always +####### LOGGING OUTPUT FORMAT ############ +# Must be one of console or json +####################################### +log.output.format=console + +######OPENAPI##################################### +springdoc.swagger-ui.path=/openapi/ui + +docs.info.contact.name=Mario Rossi +docs.info.contact.mail=example@mail.com +docs.info.contact.url=www.example.com +docs.info.termsOfService=www.terms.com +docs.info.summary=Gtw Log collector microservice +docs.info.description=Gtw Log collector microservice +docs.info.api-id=1 +docs.info.title=Gtw Log collector +validation.file-max-size=1000 + +####################################### +# KAFKA +####################################### +#######KAFKA SETTING################ +spring.sleuth.messaging.kafka.enabled=false +kafka.bootstrap-servers=${KAFKA_ADDRESS} +kafka.properties.security.protocol=SASL_SSL +kafka.properties.sasl.mechanism=OAUTHBEARER +kafka.properties.sasl.jaas.config=org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule required; +kafka.properties.ssl.truststore.location= +kafka.properties.ssl.truststore.password= +kafka.client-id=log-collector-notifier +kafka.oauth.tenantId=${TENANT_ID} +kafka.oauth.appId=${APP_ID} +kafka.oauth.pfxPathName=${PFX_NAME_RESOURCE_PATH} +kafka.oauth.pwd=${PFX_PASSWORD} +#######KAFKA CONSUMER SETTING################ +kafka.consumer.group-id=log-collector-notifier-group +kafka.consumer.auto-offset-reset=earliest +kafka.consumer.isolation.level=read_committed +kafka.consumer.auto-commit=false +#######KAFKA CONSUMER DEAD LETTER ##################### +kafka.consumer.dead-letter-exc={'java.lang.NullPointerException'} + +####### KAFKA PRODUCER SETTINGS ################ +kafka.producer.retries=5 +event.topic.auto.start=true + +###### KAFKA TOPIC ########## +kafka.notifier.topic=MDS-SA-0004_FU_001_LOG +kafka.notifier.deadletter.topic=MDS-SA-0004_FU_001_LOG_DLT +Kafka.notifier.sender.topic=MDS-SA-0004_FU_001_LOG_SENDER + +####################################### +# DATASOURCE DB +####################################### +data.mongodb.uri=${MONGO_URI_SRV}${MONGO_USER}:${MONGO_PASSWORD}@${MONGO_ADDRESS}${MONGO_SUFFIX} +data.mongodb.schema-name= FSE_GTW + +####################################### +# DISABLE NULL ON JSON +####################################### +spring.jackson.default-property-inclusion = NON_NULL + +####################################### +# LOG +####################################### +log.expire.date.day=5 + +####################################### +# Configurazione scheduler : +# secondi, minuti, ore, giorni del mese, mese, giorni della settimana +####################################### +scheduler.control-log=- +scheduler.kpi-log=- + +####################################### +# Microservices url +####################################### +ms.url.gtw-config=http://it-fse-gtw-config.${SERVICE_ADDRESS} diff --git a/it-fse-gtw-status-check/config/application.properties b/it-fse-gtw-status-check/config/application.properties new file mode 100644 index 0000000..fcb4e2f --- /dev/null +++ b/it-fse-gtw-status-check/config/application.properties @@ -0,0 +1,66 @@ +####################################### +# Application name +####################################### +server.port=8081 +spring.application.name=gtw-status-check +server.servlet.context-path=/ + +####################################### +# Application monitoring +####################################### +info.app.name=Gateway Status check - FSE 2.0 +info.app.description=Gateway Status check for FSE 2.0 +info.app.version=1.0.0_IPPOCRATE + +management.server.port=8081 +management.endpoints.web.base-path=/ +management.endpoints.web.path-mapping.live=status +management.endpoints.web.path-mapping.health=health/ready +management.endpoint.metrics.enabled=true +management.endpoint.prometheus.enabled=true +management.endpoints.web.path-mapping.prometheus=metrics +management.endpoints.web.path-mapping.metrics=actuator +management.endpoints.web.exposure.include=health,metrics,prometheus,live,ready,env,info +management.health.db.enabled=true +management.endpoint.health.show-details=always + +####################################### +# Open API +####################################### +springdoc.swagger-ui.path=/openapi/ui +springdoc.show-actuator=true + +docs.info.contact.name=Mario Rossi +docs.info.contact.mail=mariorossi@ibm.com +docs.info.contact.url=www.example.com +docs.info.termsOfService=www.terms.com +docs.info.summary=Exposes APIs to retrieve the status of the transactions +docs.info.description=Exposes APIs to retrieve the status of the transactions +docs.info.api-id=1 +docs.info.title=Gateway Status Check +validation.file-max-size=1000 + +####### LOGGING OUTPUT FORMAT ############ +# Must be one of console, json +####################################### +log.output.format=console +log.level=trace +log.elastic-search.enable=false +logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=DEBUG + +####################################### +# DISABLE NULL ON JSON +####################################### +spring.jackson.default-property-inclusion = NON_NULL +spring.jackson.time-zone=Europe/Rome +####################################### +# DATASOURCE DB +####################################### +data.mongodb.uri=${MONGO_URI_SRV}${MONGO_USER}:${MONGO_PASSWORD}@${MONGO_ADDRESS}${MONGO_SUFFIX} +data.mongodb.max.staleness=91 +data.mongodb.schema-name= FSE_GTW + +####################################### +# WORKFLOWINSTANCEID PROPERTY +####################################### +status-check.db-limit-property=0 diff --git a/it-fse-gtw-status-manager/config/application.properties b/it-fse-gtw-status-manager/config/application.properties new file mode 100644 index 0000000..74cb8a5 --- /dev/null +++ b/it-fse-gtw-status-manager/config/application.properties @@ -0,0 +1,127 @@ +####################################### +# Application name +####################################### +server.port=8081 +spring.application.name=gtw-status-manager +server.servlet.context-path=/ + +####################################### +# Application monitoring +####################################### +info.app.name=Gateway Status Manager - FSE 2.0 +info.app.description=Gateway Status Manager for FSE 2.0 +info.app.version=1.0.0_SPRINT6 + +management.server.port=8081 +management.endpoints.web.base-path=/ +management.endpoints.web.path-mapping.live=status +management.endpoints.web.path-mapping.health=health/ready +management.endpoint.metrics.enabled=true +management.endpoint.prometheus.enabled=true +management.endpoints.web.path-mapping.prometheus=metrics +management.endpoints.web.path-mapping.metrics=actuator +management.endpoints.web.exposure.include=health,metrics,prometheus,live,ready,env,info +management.health.db.enabled=true +management.endpoint.health.show-details=always + +####################################### +# Open API +####################################### +springdoc.swagger-ui.path=/openapi/ui +springdoc.show-actuator=true + +docs.info.contact.name=Mario Rossi +docs.info.contact.mail=mariorossi@ibm.com +docs.info.contact.url=www.example.com +docs.info.termsOfService=www.terms.com +docs.info.summary=Gateway Status manager +docs.info.description=Gateway Status manager +docs.info.api-id=1 +docs.info.title=Gateway Status manager + +####### LOGGING OUTPUT FORMAT ############ +# Must be one of console, json +####################################### +log.output.format=console +log.elastic-search.enable=false +logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=DEBUG + +####################################### +# DISABLE NULL ON JSON +####################################### +spring.jackson.default-property-inclusion = NON_NULL + +####################################### +# DATASOURCE DB +####################################### +data.mongodb.uri=${MONGO_URI_SRV}${MONGO_USER}:${MONGO_PASSWORD}@${MONGO_ADDRESS}${MONGO_SUFFIX} +data.mongodb.max.staleness=91 +data.mongodb.schema-name= FSE_GTW + +####################################### +# KAFKA +####################################### +spring.sleuth.messaging.kafka.enabled=false + +####KAFKA CONNECTION SETTINGS ########## +kafka.bootstrap-servers=${KAFKA_ADDRESS} +kafka.properties.security.protocol=SASL_SSL +kafka.properties.sasl.mechanism=OAUTHBEARER +kafka.properties.sasl.jaas.config=org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule required; +kafka.properties.ssl.truststore.location= +kafka.properties.ssl.truststore.password= +kafka.properties.request.timeout.ms= +kafka.oauth.tenantId=${TENANT_ID} +kafka.oauth.appId=${APP_ID} +kafka.oauth.pfxPathName=${PFX_NAME_RESOURCE_PATH} +kafka.oauth.pwd=${PFX_PASSWORD} +kafka.enablessl=true + +#######KAFKA PRODUCER SETTING################ +kafka.producer.retries=5 +kafka.producer.bootstrap-servers=${KAFKA_ADDRESS} +kafka.producer.key-serializer= org.apache.kafka.common.serialization.StringSerializer +kafka.producer.value-serializer= org.apache.kafka.common.serialization.StringSerializer +kafka.producer.transactional.id= +kafka.producer.enable.idempotence=true +kafka.producer.ack=all +#######KAFKA PRODUCER SETTING################ + +#######KAFKA CONSUMER SETTING################ +kafka.client-id=fse-notifier-client +kafka.client-eds-id=fse-notifier-client-eds +kafka.consumer.group-id-eds=fse-notifier-eds +kafka.consumer.group-id=fse-notifier +kafka.consumer.bootstrap-servers=${KAFKA_ADDRESS} +kafka.consumer.key-deserializer= org.apache.kafka.common.serialization.StringDeserializer +kafka.consumer.value-deserializer=org.apache.kafka.common.serialization.StringDeserializer +kafka.consumer.auto-offset-reset=earliest +kafka.consumer.isolation.level=read_committed +kafka.consumer.auto-commit=false +#######KAFKA CONSUMER SETTING################ + +####KAFKA CODE ########## +event.topic.auto.start=true +kafka.statusmanager.topic=MDS-SA-0004_FU_001_STATUS +kafka.statusmanager.eds.topic=MDS-SA-0004_FU_002_STATUS +kafka.statusmanager.deadletter.topic=MDS-SA-0004_FU_001_STATUS-DLT +kafka.statusmanager.eds.deadletter.topic=MDS-SA-0004_FU_002_STATUS-DLT + +####### KAFKA DEAD LETTER ##################### +kafka.consumer.dead-letter-exc={'it.finanze.sanita.fse2.ms.gtw.statusmanager.exceptions.BusinessException','java.lang.NullPointerException', 'it.finanze.sanita.fse2.ms.gtw.statusmanager.exceptions.RemoteServiceNotAvailableException'} + +####################################### +# Scheduler +####################################### +scheduler.tx-scheduler=- + +################################## +# Microservices +################################## +ms.url.eds-processor-service= +ms.url.gtw-config=http://it-fse-gtw-config.${SERVICE_ADDRESS} + +###################################### +# TIME RATE REFRESH CONFIG (milliseconds) +###################################### +ms.config.refresh-rate=900000 \ No newline at end of file diff --git a/it-fse-gtw-validator/config/application.properties b/it-fse-gtw-validator/config/application.properties new file mode 100644 index 0000000..bead271 --- /dev/null +++ b/it-fse-gtw-validator/config/application.properties @@ -0,0 +1,100 @@ +####################################### +# Application name +####################################### +server.port=8081 +spring.application.name=gtw-validator +server.servlet.context-path=/ + +####################################### +# Application monitoring +####################################### +info.app.name=Gateway Validator - FSE 2.0 +info.app.description=Gateway Validator for FSE 2.0 +info.app.version=1.0.0_IPPOCRATE + +management.server.port=8081 +management.endpoints.web.base-path=/ +management.endpoints.web.path-mapping.live=status +management.endpoints.web.path-mapping.health=health/ready +management.endpoint.metrics.enabled=true +management.endpoint.prometheus.enabled=true +management.endpoints.web.path-mapping.prometheus=metrics +management.endpoints.web.path-mapping.metrics=actuator +management.endpoints.web.exposure.include=health,metrics,prometheus,live,ready,env,info +management.health.db.enabled=true +management.endpoint.health.show-details=always + +####################################### +# Open API +####################################### +springdoc.swagger-ui.path=/openapi/ui +springdoc.show-actuator=true + +docs.info.contact.name=Mario Rossi +docs.info.contact.mail=mariorossi@ibm.com +docs.info.contact.url=www.example.com +docs.info.termsOfService=www.terms.com +docs.info.summary=Validates CDA +docs.info.description=Validates CDA +docs.info.api-id=1 +docs.info.title=Gateway Validator +validation.file-max-size=1000 + +####### LOGGING OUTPUT FORMAT ############ +# Must be one of console, json +####################################### +log.output.format=console +log.level=trace +log.kafka-log.enable=true +logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=DEBUG + +####################################### +# DISABLE NULL ON JSON +####################################### +spring.jackson.default-property-inclusion = NON_NULL + +####################################### +# DATASOURCE DB +####################################### +data.mongodb.uri=${MONGO_URI_SRV}${MONGO_USER}:${MONGO_PASSWORD}@${MONGO_ADDRESS}${MONGO_SUFFIX} +data.mongodb.max.staleness=91 +data.mongodb.schema-name= FSE_GTW +####################################### +# KAFKA +####################################### +spring.sleuth.messaging.kafka.enabled=false +####KAFKA CONNECTION SETTINGS ########## +kafka.bootstrap-servers=${KAFKA_ADDRESS} +kafka.properties.security.protocol=SASL_SSL +kafka.properties.sasl.mechanism=OAUTHBEARER +kafka.properties.sasl.jaas.config=org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule required; +kafka.properties.ssl.truststore.location= +kafka.properties.ssl.truststore.password= +kafka.properties.request.timeout.ms= +kafka.oauth.tenantId=${TENANT_ID} +kafka.oauth.appId=${APP_ID} +kafka.oauth.pfxPathName=${PFX_NAME_RESOURCE_PATH} +kafka.oauth.pwd=${PFX_PASSWORD} +kafka.enablessl=true + +kafka.producer.client-id=springboot-gtw-validator +kafka.log.base-topic=MDS-SA-0004_FU_001_LOG + +####################################### +# Vocabulary +####################################### +vocabulary.find-specific-error=true +vocabulary.find-system-code-independence=false + +####################################### +# Configurazione scheduler : +# secondi, minuti, ore, giorni del mese, mese, giorni della settimana +####################################### +scheduler.update-singleton.run=0 0 * * * * + +ms.url.gtw-config=http://it-fse-gtw-config.${SERVICE_ADDRESS} + +###################################### +# TIME RATE REFRESH CONFIG (milliseconds) +###################################### +ms.config.refresh-rate=900000