tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 1 | # ============LICENSE_START=======================================================
|
| 2 | # Modification (C) 2021 Nordix Foundation
|
Renu Kumari | ff52b94 | 2021-05-27 23:16:32 -0400 | [diff] [blame^] | 3 | # Modification Copyright (C) 2021 Bell Canada.
|
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [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 | # Unless required by applicable law or agreed to in writing, software
|
| 11 | # distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 | # See the License for the specific language governing permissions and
|
| 14 | # limitations under the License.
|
| 15 | #
|
| 16 | # SPDX-License-Identifier: Apache-2.0
|
| 17 | # ============LICENSE_END=========================================================
|
| 18 |
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 19 | server:
|
puthuparambil.aditya | 52cff68 | 2020-11-05 11:34:41 +0000 | [diff] [blame] | 20 | port: 8080
|
Ruslan Kashapov | 708fd66 | 2021-01-21 09:37:05 +0200 | [diff] [blame] | 21 |
|
| 22 | rest:
|
| 23 | api:
|
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 24 | cps-base-path: /cps/api
|
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 25 | ncmp-base-path: /cps-ncmp/api
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 26 |
|
| 27 | spring:
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 28 | main:
|
| 29 | banner-mode: "off"
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 30 | jpa:
|
| 31 | ddl-auto: create
|
| 32 | open-in-view: false
|
| 33 | properties:
|
| 34 | hibernate:
|
| 35 | enable_lazy_load_no_trans: true
|
| 36 | dialect: org.hibernate.dialect.PostgreSQLDialect
|
| 37 |
|
| 38 | datasource:
|
| 39 | url: jdbc:postgresql://${DB_HOST}:5432/cpsdb
|
| 40 | username: ${DB_USERNAME}
|
| 41 | password: ${DB_PASSWORD}
|
| 42 | driverClassName: org.postgresql.Driver
|
| 43 | initialization-mode: always
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 44 |
|
Claudio David Gasparini | 1b8a4dd | 2021-01-13 19:12:25 +0100 | [diff] [blame] | 45 | cache:
|
| 46 | type: caffeine
|
| 47 | cache-names: yangSchema
|
| 48 | caffeine:
|
| 49 | spec: maximumSize=10000,expireAfterAccess=10m
|
puthuparambil.aditya | 495ae8e | 2021-02-23 15:51:00 +0000 | [diff] [blame] | 50 |
|
| 51 | liquibase:
|
| 52 | change-log: classpath:changelog/changelog-master.yaml
|
| 53 | labels: ${LIQUIBASE_LABELS}
|
| 54 |
|
niamhcore | 49a609c | 2021-04-07 11:35:19 +0100 | [diff] [blame] | 55 | servlet:
|
| 56 | multipart:
|
| 57 | enabled: true
|
| 58 | max-file-size: 100MB
|
| 59 | max-request-size: 100MB
|
| 60 |
|
Renu Kumari | ff52b94 | 2021-05-27 23:16:32 -0400 | [diff] [blame^] | 61 | kafka:
|
| 62 | bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER:localhost:9092}
|
| 63 | security:
|
| 64 | protocol: PLAINTEXT
|
| 65 | producer:
|
| 66 | value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
|
| 67 | client-id: cps-core
|
| 68 |
|
| 69 | notification:
|
| 70 | data-updated:
|
| 71 | enabled: false
|
| 72 | topic: ${CPS_CHANGE_EVENT_TOPIC:cps.cfg-state-events}
|
| 73 |
|
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 74 | security:
|
| 75 | # comma-separated uri patterns which do not require authorization
|
| 76 | permit-uri: /manage/health/**,/manage/info,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
|
| 77 | auth:
|
Renu Kumari | 3da5207 | 2021-04-14 10:14:13 -0400 | [diff] [blame] | 78 | username: ${CPS_USERNAME}
|
| 79 | password: ${CPS_PASSWORD}
|
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 80 |
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 81 | # Actuator
|
| 82 | management:
|
| 83 | endpoints:
|
| 84 | web:
|
| 85 | base-path: /manage
|
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 86 | exposure:
|
| 87 | include: info,health,loggers
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 88 | endpoint:
|
| 89 | health:
|
| 90 | show-details: always
|
| 91 | # kubernetes probes: liveness and readiness
|
| 92 | probes:
|
| 93 | enabled: true
|
Ruslan Kashapov | a087b94 | 2021-01-26 08:36:57 +0200 | [diff] [blame] | 94 | loggers:
|
Ruslan Kashapov | 708fd66 | 2021-01-21 09:37:05 +0200 | [diff] [blame] | 95 | enabled: true
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 96 |
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 97 | logging:
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 98 | level:
|
| 99 | org:
|
| 100 | springframework: INFO
|