blob: 9d521641ba4fe6765a0dbe3b0191c0271d234249 [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
puthuparambil.adityab46d1372021-07-09 12:51:10 +010076 permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020077 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:
puthuparambil.adityab46d1372021-07-09 12:51:10 +010083 server:
84 port: 8081
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +020085 endpoints:
86 web:
87 base-path: /manage
puthuparambil.adityab46d1372021-07-09 12:51:10 +010088 exposure:
89 include: info,health,loggers,prometheus
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +020090 endpoint:
91 health:
92 show-details: always
93 # kubernetes probes: liveness and readiness
94 probes:
95 enabled: true
96
Rishi Chailb220d742020-09-16 15:23:53 +010097logging:
Rishi Chail8af414a2020-10-08 12:33:33 +010098 level:
99 org:
100 springframework: INFO