blob: 4f3072eb91ed2690988b49a9f4e490c7c486d264 [file] [log] [blame]
tragait34a94b92021-03-30 12:02:27 +01001# ============LICENSE_START=======================================================
2# Modification (C) 2021 Nordix Foundation
Renu Kumariff52b942021-05-27 23:16:32 -04003# Modification Copyright (C) 2021 Bell Canada.
tragait34a94b92021-03-30 12:02:27 +01004# ================================================================================
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 Chailb220d742020-09-16 15:23:53 +010019server:
puthuparambil.aditya52cff682020-11-05 11:34:41 +000020 port: 8080
Ruslan Kashapov708fd662021-01-21 09:37:05 +020021
22rest:
23 api:
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010024 cps-base-path: /cps/api
tragait34a94b92021-03-30 12:02:27 +010025 ncmp-base-path: /cps-ncmp/api
Rishi Chailb220d742020-09-16 15:23:53 +010026
27spring:
Rishi Chail8af414a2020-10-08 12:33:33 +010028 main:
29 banner-mode: "off"
Rishi Chail8af414a2020-10-08 12:33:33 +010030 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 Chailb220d742020-09-16 15:23:53 +010044
Claudio David Gasparini1b8a4dd2021-01-13 19:12:25 +010045 cache:
46 type: caffeine
47 cache-names: yangSchema
48 caffeine:
49 spec: maximumSize=10000,expireAfterAccess=10m
puthuparambil.aditya495ae8e2021-02-23 15:51:00 +000050
51 liquibase:
52 change-log: classpath:changelog/changelog-master.yaml
53 labels: ${LIQUIBASE_LABELS}
54
niamhcore49a609c2021-04-07 11:35:19 +010055 servlet:
56 multipart:
57 enabled: true
58 max-file-size: 100MB
59 max-request-size: 100MB
60
Renu Kumariff52b942021-05-27 23:16:32 -040061 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
69notification:
70 data-updated:
71 enabled: false
72 topic: ${CPS_CHANGE_EVENT_TOPIC:cps.cfg-state-events}
73
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020074security:
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 Kumari3da52072021-04-14 10:14:13 -040078 username: ${CPS_USERNAME}
79 password: ${CPS_PASSWORD}
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020080
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +020081# Actuator
82management:
83 endpoints:
84 web:
85 base-path: /manage
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010086 exposure:
87 include: info,health,loggers
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +020088 endpoint:
89 health:
90 show-details: always
91 # kubernetes probes: liveness and readiness
92 probes:
93 enabled: true
Ruslan Kashapova087b942021-01-26 08:36:57 +020094 loggers:
Ruslan Kashapov708fd662021-01-21 09:37:05 +020095 enabled: true
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +020096
Rishi Chailb220d742020-09-16 15:23:53 +010097logging:
Rishi Chail8af414a2020-10-08 12:33:33 +010098 level:
99 org:
100 springframework: INFO