Bruno Sakoto | 05855d5 | 2021-04-20 08:22:56 -0400 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (c) 2021 Bell Canada. |
Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 3 | # Modifications Copyright (C) 2021 Nordix Foundation. |
Bruno Sakoto | 05855d5 | 2021-04-20 08:22:56 -0400 | [diff] [blame] | 4 | # ================================================================================ |
| 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 Kumari | 22fe216 | 2021-07-22 11:53:53 -0400 | [diff] [blame] | 16 | # |
| 17 | # SPDX-License-Identifier: Apache-2.0 |
Bruno Sakoto | 05855d5 | 2021-04-20 08:22:56 -0400 | [diff] [blame] | 18 | # ============LICENSE_END========================================================= |
| 19 | |
puthuparambil.aditya | d31d8e1 | 2021-05-06 16:12:44 +0100 | [diff] [blame] | 20 | server: |
| 21 | port: 8080 |
| 22 | |
Renu Kumari | 22fe216 | 2021-07-22 11:53:53 -0400 | [diff] [blame] | 23 | rest: |
| 24 | api: |
| 25 | base-path: /cps-temporal/api |
| 26 | |
Bruno Sakoto | 05855d5 | 2021-04-20 08:22:56 -0400 | [diff] [blame] | 27 | spring: |
sourabh_sourabh | a7863ef | 2022-05-04 11:53:01 +0100 | [diff] [blame] | 28 | application: |
| 29 | name: cps-temporal |
Bruno Sakoto | 05855d5 | 2021-04-20 08:22:56 -0400 | [diff] [blame] | 30 | datasource: |
Rishi.Chail | 26af936 | 2021-05-04 16:34:09 +0100 | [diff] [blame] | 31 | url: jdbc:postgresql://${DB_HOST}:${DB_PORT}/cpstemporaldb |
Bruno Sakoto | 05855d5 | 2021-04-20 08:22:56 -0400 | [diff] [blame] | 32 | username: ${DB_USERNAME} |
| 33 | password: ${DB_PASSWORD} |
| 34 | liquibase: |
| 35 | change-log: classpath:/db/changelog/changelog-master.xml |
puthuparambil.aditya | d31d8e1 | 2021-05-06 16:12:44 +0100 | [diff] [blame] | 36 | jpa: |
Renu Kumari | b0abffa | 2021-07-24 03:10:10 -0400 | [diff] [blame] | 37 | open-in-view: false |
puthuparambil.aditya | d31d8e1 | 2021-05-06 16:12:44 +0100 | [diff] [blame] | 38 | properties: |
Bruno Sakoto | c9b9934 | 2021-06-04 07:49:14 -0400 | [diff] [blame] | 39 | 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 Sakoto | e36f8e3 | 2021-08-20 18:59:25 -0400 | [diff] [blame] | 57 | spring.json.use.type.headers: false |
puthuparambil.aditya | d31d8e1 | 2021-05-06 16:12:44 +0100 | [diff] [blame] | 58 | |
Bruno Sakoto | c9b9934 | 2021-06-04 07:49:14 -0400 | [diff] [blame] | 59 | app: |
| 60 | listener: |
| 61 | data-updated: |
Bruno Sakoto | e36f8e3 | 2021-08-20 18:59:25 -0400 | [diff] [blame] | 62 | topic: ${CPS_CHANGE_EVENT_TOPIC:cps.data-updated-events} |
Renu Kumari | ea04c07 | 2021-08-10 16:43:04 -0400 | [diff] [blame] | 63 | query: |
| 64 | response: |
| 65 | max-page-size: 10000 |
Renu Kumari | 22fe216 | 2021-07-22 11:53:53 -0400 | [diff] [blame] | 66 | |
| 67 | springdoc: |
| 68 | swagger-ui: |
| 69 | disable-swagger-default-url: true |
| 70 | urlsPrimaryName: query |
| 71 | urls: |
| 72 | - name: query |
| 73 | url: /swagger/openapi.yml |
Renu Kumari | 743380d | 2021-08-17 07:30:19 -0400 | [diff] [blame] | 74 | security: |
| 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.aditya | 8169b24 | 2021-08-03 11:19:40 +0100 | [diff] [blame] | 80 | |
| 81 | # Actuator |
| 82 | management: |
| 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_sourabh | a7863ef | 2022-05-04 11:53:01 +0100 | [diff] [blame] | 95 | enabled: true |
| 96 | |
| 97 | logging: |
| 98 | format: json |
| 99 | |