blob: acf78036ad91fddd08b224be2f444c8e06331865 [file] [log] [blame]
tragait34a94b92021-03-30 12:02:27 +01001# ============LICENSE_START=======================================================
lukegleeson15b93e72021-07-07 15:25:30 +01002# Copyright (C) 2021 Pantheon.tech
3# Modifications Copyright (C) 2021 Bell Canada
4# Modifications Copyright (C) 2021 Nordix Foundation
tragait34a94b92021-03-30 12:02:27 +01005# ================================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
lukegleeson15b93e72021-07-07 15:25:30 +010011#
tragait34a94b92021-03-30 12:02:27 +010012# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18# SPDX-License-Identifier: Apache-2.0
19# ============LICENSE_END=========================================================
20
Rishi Chailb220d742020-09-16 15:23:53 +010021server:
puthuparambil.aditya52cff682020-11-05 11:34:41 +000022 port: 8080
Ruslan Kashapov708fd662021-01-21 09:37:05 +020023
24rest:
25 api:
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010026 cps-base-path: /cps/api
tragait34a94b92021-03-30 12:02:27 +010027 ncmp-base-path: /cps-ncmp/api
Rishi Chailb220d742020-09-16 15:23:53 +010028
29spring:
Rishi Chail8af414a2020-10-08 12:33:33 +010030 main:
31 banner-mode: "off"
Rishi Chail8af414a2020-10-08 12:33:33 +010032 jpa:
33 ddl-auto: create
34 open-in-view: false
35 properties:
36 hibernate:
37 enable_lazy_load_no_trans: true
38 dialect: org.hibernate.dialect.PostgreSQLDialect
39
40 datasource:
41 url: jdbc:postgresql://${DB_HOST}:5432/cpsdb
42 username: ${DB_USERNAME}
43 password: ${DB_PASSWORD}
44 driverClassName: org.postgresql.Driver
45 initialization-mode: always
Rishi Chailb220d742020-09-16 15:23:53 +010046
Claudio David Gasparini1b8a4dd2021-01-13 19:12:25 +010047 cache:
48 type: caffeine
49 cache-names: yangSchema
50 caffeine:
51 spec: maximumSize=10000,expireAfterAccess=10m
puthuparambil.aditya495ae8e2021-02-23 15:51:00 +000052
53 liquibase:
54 change-log: classpath:changelog/changelog-master.yaml
55 labels: ${LIQUIBASE_LABELS}
56
niamhcore49a609c2021-04-07 11:35:19 +010057 servlet:
58 multipart:
59 enabled: true
60 max-file-size: 100MB
61 max-request-size: 100MB
62
Renu Kumariff52b942021-05-27 23:16:32 -040063 kafka:
64 bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER:localhost:9092}
65 security:
66 protocol: PLAINTEXT
67 producer:
68 value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
69 client-id: cps-core
70
71notification:
72 data-updated:
73 enabled: false
74 topic: ${CPS_CHANGE_EVENT_TOPIC:cps.cfg-state-events}
Renu Kumari8f01bf62021-08-17 14:06:53 -040075 filters:
Renu Kumari86c74c72021-08-19 13:11:00 -040076 enabled-dataspaces: ${NOTIFICATION_DATASPACE_FILTER_PATTERNS:""}
77 async-executor:
78 core-pool-size: 2
79 max-pool-size: 10
80 queue-capacity: 500
81 wait-for-tasks-to-complete-on-shutdown: true
82 thread-name-prefix: Async-
83
Renu Kumariff52b942021-05-27 23:16:32 -040084
JosephKeenan2472e612021-06-23 14:15:52 +010085springdoc:
86 swagger-ui:
87 url: /openapi.yml
88 path: /swagger-ui/index.html
Renu Kumari8f01bf62021-08-17 14:06:53 -040089
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020090security:
91 # comma-separated uri patterns which do not require authorization
puthuparambil.adityab46d1372021-07-09 12:51:10 +010092 permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020093 auth:
Renu Kumari3da52072021-04-14 10:14:13 -040094 username: ${CPS_USERNAME}
95 password: ${CPS_PASSWORD}
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020096
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +020097# Actuator
98management:
puthuparambil.adityab46d1372021-07-09 12:51:10 +010099 server:
100 port: 8081
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +0200101 endpoints:
102 web:
103 base-path: /manage
puthuparambil.adityab46d1372021-07-09 12:51:10 +0100104 exposure:
105 include: info,health,loggers,prometheus
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +0200106 endpoint:
107 health:
108 show-details: always
109 # kubernetes probes: liveness and readiness
110 probes:
111 enabled: true
112
Rishi Chailb220d742020-09-16 15:23:53 +0100113logging:
Rishi Chail8af414a2020-10-08 12:33:33 +0100114 level:
115 org:
116 springframework: INFO
tragaitc3285512021-08-16 15:12:36 +0100117
118dmi:
119 auth:
120 username: ${DMI_USERNAME}
121 password: ${DMI_PASSWORD}