blob: 9b3be0311e7808baa7597f6590b39c23ee6d9f6a [file] [log] [blame]
Bruno Sakoto05855d52021-04-20 08:22:56 -04001# ============LICENSE_START=======================================================
2# Copyright (c) 2021 Bell Canada.
Rishi.Chail26af9362021-05-04 16:34:09 +01003# Modifications Copyright (C) 2021 Nordix Foundation.
Bruno Sakoto05855d52021-04-20 08:22:56 -04004# ================================================================================
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
Renu Kumari22fe2162021-07-22 11:53:53 -040016#
17# SPDX-License-Identifier: Apache-2.0
Bruno Sakoto05855d52021-04-20 08:22:56 -040018# ============LICENSE_END=========================================================
19
puthuparambil.adityad31d8e12021-05-06 16:12:44 +010020server:
21 port: 8080
22
Renu Kumari22fe2162021-07-22 11:53:53 -040023rest:
24 api:
25 base-path: /cps-temporal/api
26
Bruno Sakoto05855d52021-04-20 08:22:56 -040027spring:
sourabh_sourabha7863ef2022-05-04 11:53:01 +010028 application:
29 name: cps-temporal
Bruno Sakoto05855d52021-04-20 08:22:56 -040030 datasource:
Rishi.Chail26af9362021-05-04 16:34:09 +010031 url: jdbc:postgresql://${DB_HOST}:${DB_PORT}/cpstemporaldb
Bruno Sakoto05855d52021-04-20 08:22:56 -040032 username: ${DB_USERNAME}
33 password: ${DB_PASSWORD}
34 liquibase:
35 change-log: classpath:/db/changelog/changelog-master.xml
puthuparambil.adityad31d8e12021-05-06 16:12:44 +010036 jpa:
Renu Kumarib0abffa2021-07-24 03:10:10 -040037 open-in-view: false
puthuparambil.adityad31d8e12021-05-06 16:12:44 +010038 properties:
Bruno Sakotoc9b99342021-06-04 07:49:14 -040039 hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
40 hibernate.format_sql: true
41 hibernate.generate_statistics: false
42 kafka:
43 bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER}
44 security:
45 protocol: PLAINTEXT
46 consumer:
47 group-id: ${KAFKA_CONSUMER_GROUP_ID:cps-temporal-group}
48 # Configures the Spring Kafka ErrorHandlingDeserializer that delegates to the 'real' deserializers
49 # See https://docs.spring.io/spring-kafka/docs/2.5.11.RELEASE/reference/html/#error-handling-deserializer
50 # and https://www.confluent.io/blog/spring-kafka-can-your-kafka-consumers-handle-a-poison-pill/
51 key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
52 value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
53 properties:
54 spring.deserializer.key.delegate.class: org.apache.kafka.common.serialization.StringDeserializer
55 spring.deserializer.value.delegate.class: org.springframework.kafka.support.serializer.JsonDeserializer
56 spring.json.value.default.type: org.onap.cps.event.model.CpsDataUpdatedEvent
Bruno Sakotoe36f8e32021-08-20 18:59:25 -040057 spring.json.use.type.headers: false
puthuparambil.adityad31d8e12021-05-06 16:12:44 +010058
Bruno Sakotoc9b99342021-06-04 07:49:14 -040059app:
60 listener:
61 data-updated:
Bruno Sakotoe36f8e32021-08-20 18:59:25 -040062 topic: ${CPS_CHANGE_EVENT_TOPIC:cps.data-updated-events}
Renu Kumariea04c072021-08-10 16:43:04 -040063 query:
64 response:
65 max-page-size: 10000
Renu Kumari22fe2162021-07-22 11:53:53 -040066
67springdoc:
68 swagger-ui:
69 disable-swagger-default-url: true
70 urlsPrimaryName: query
71 urls:
72 - name: query
73 url: /swagger/openapi.yml
Renu Kumari743380d2021-08-17 07:30:19 -040074security:
75 # comma-separated uri patterns which do not require authorization
76 permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/swagger/openapi.yml
77 auth:
78 username: ${APP_USERNAME}
79 password: ${APP_PASSWORD}
puthuparambil.aditya8169b242021-08-03 11:19:40 +010080
81# Actuator
82management:
83 server:
84 port: 8081
85 endpoints:
86 web:
87 base-path: /manage
88 exposure:
89 include: info,health,loggers,prometheus
90 endpoint:
91 health:
92 show-details: always
93 # kubernetes probes: liveness and readiness
94 probes:
sourabh_sourabha7863ef2022-05-04 11:53:01 +010095 enabled: true
96
97logging:
98 format: json
99