blob: 692996c985169e33e62e4abb4b4e2f2576ddafcd [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
sourabh_sourabh01b60122022-01-21 01:46:12 +05304# Modifications Copyright (C) 2021-2022 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
Renu Kumari4d520012021-08-30 11:50:43 -040027 ncmp-base-path: /ncmp
Renu Kumari139e8222021-10-04 20:59:18 -040028 ncmp-inventory-base-path: /ncmpInventory
Rishi Chailb220d742020-09-16 15:23:53 +010029
30spring:
Rishi Chail8af414a2020-10-08 12:33:33 +010031 main:
32 banner-mode: "off"
sourabh_sourabh01b60122022-01-21 01:46:12 +053033 application:
34 name: "cps-application"
Rishi Chail8af414a2020-10-08 12:33:33 +010035 jpa:
36 ddl-auto: create
37 open-in-view: false
38 properties:
39 hibernate:
40 enable_lazy_load_no_trans: true
41 dialect: org.hibernate.dialect.PostgreSQLDialect
42
43 datasource:
puthuparambil.aditya73d58862022-01-28 13:22:33 +000044 url: jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/cpsdb
Rishi Chail8af414a2020-10-08 12:33:33 +010045 username: ${DB_USERNAME}
46 password: ${DB_PASSWORD}
47 driverClassName: org.postgresql.Driver
48 initialization-mode: always
Rishi Chailb220d742020-09-16 15:23:53 +010049
Claudio David Gasparini1b8a4dd2021-01-13 19:12:25 +010050 cache:
51 type: caffeine
52 cache-names: yangSchema
53 caffeine:
54 spec: maximumSize=10000,expireAfterAccess=10m
puthuparambil.aditya495ae8e2021-02-23 15:51:00 +000055
56 liquibase:
57 change-log: classpath:changelog/changelog-master.yaml
58 labels: ${LIQUIBASE_LABELS}
59
niamhcore49a609c2021-04-07 11:35:19 +010060 servlet:
61 multipart:
62 enabled: true
63 max-file-size: 100MB
64 max-request-size: 100MB
65
Renu Kumariff52b942021-05-27 23:16:32 -040066 kafka:
67 bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER:localhost:9092}
68 security:
69 protocol: PLAINTEXT
70 producer:
71 value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
72 client-id: cps-core
JosephKeenanf31c7f82022-05-24 18:59:25 +010073 consumer:
74 group-id: ${NCMP_CONSUMER_GROUP_ID:ncmp-group}
75 key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
76 value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
77 properties:
78 spring.deserializer.key.delegate.class: org.apache.kafka.common.serialization.StringDeserializer
79 spring.deserializer.value.delegate.class: org.springframework.kafka.support.serializer.JsonDeserializer
80 spring.json.value.default.type: org.onap.cps.ncmp.event.model.DmiAsyncRequestResponseEvent
81 spring.json.use.type.headers: false
82app:
83 ncmp:
84 async-m2m:
85 topic: ${NCMP_ASYNC_M2M_TOPIC:ncmp-async-m2m}
Renu Kumariff52b942021-05-27 23:16:32 -040086
87notification:
88 data-updated:
89 enabled: false
Bruno Sakoto8db64142021-08-20 18:59:14 -040090 topic: ${CPS_CHANGE_EVENT_TOPIC:cps.data-updated-events}
Renu Kumari8f01bf62021-08-17 14:06:53 -040091 filters:
Renu Kumari86c74c72021-08-19 13:11:00 -040092 enabled-dataspaces: ${NOTIFICATION_DATASPACE_FILTER_PATTERNS:""}
Renu Kumaricd048072021-09-02 10:30:09 -040093 async:
94 enabled: false
95 executor:
96 core-pool-size: 2
97 max-pool-size: 10
98 queue-capacity: 500
99 wait-for-tasks-to-complete-on-shutdown: true
100 thread-name-prefix: Async-
JosephKeenanf31c7f82022-05-24 18:59:25 +0100101 time-out-value-in-ms: 2000
Renu Kumariff52b942021-05-27 23:16:32 -0400102
JosephKeenan2472e612021-06-23 14:15:52 +0100103springdoc:
104 swagger-ui:
Renu Kumari4d520012021-08-30 11:50:43 -0400105 disable-swagger-default-url: true
106 urlsPrimaryName: cps-core
107 urls:
108 - name: cps-core
109 url: /api-docs/cps-core/openapi.yaml
110 - name: cps-ncmp
111 url: /api-docs/cps-ncmp/openapi.yaml
Renu Kumari139e8222021-10-04 20:59:18 -0400112 - name: cps-ncmp-inventory
113 url: /api-docs/cps-ncmp/openapi-inventory.yaml
114
Renu Kumari8f01bf62021-08-17 14:06:53 -0400115
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +0200116security:
117 # comma-separated uri patterns which do not require authorization
Renu Kumari139e8222021-10-04 20:59:18 -0400118 permit-uri: /manage/**,/swagger-ui.html,/swagger-ui/**,/swagger-resources/**,/api-docs/**
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +0200119 auth:
Renu Kumari3da52072021-04-14 10:14:13 -0400120 username: ${CPS_USERNAME}
121 password: ${CPS_PASSWORD}
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +0200122
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +0200123# Actuator
124management:
puthuparambil.adityab46d1372021-07-09 12:51:10 +0100125 server:
126 port: 8081
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +0200127 endpoints:
128 web:
129 base-path: /manage
puthuparambil.adityab46d1372021-07-09 12:51:10 +0100130 exposure:
131 include: info,health,loggers,prometheus
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +0200132 endpoint:
133 health:
134 show-details: always
135 # kubernetes probes: liveness and readiness
136 probes:
137 enabled: true
138
Rishi Chailb220d742020-09-16 15:23:53 +0100139logging:
sourabh_sourabhac5ae3e2022-04-22 22:47:41 +0100140 format: json
Rishi Chail8af414a2020-10-08 12:33:33 +0100141 level:
142 org:
143 springframework: INFO
sourabh_sourabh01b60122022-01-21 01:46:12 +0530144 onap:
145 cps: INFO
DylanB95EST324eb162022-05-16 10:45:56 +0100146
147dmi:
148 auth:
149 username: ${DMI_USERNAME}
150 password: ${DMI_PASSWORD}
151 api:
152 base-path: dmi
153
154timers:
155 advised-modules-sync:
156 sleep-time-ms: 30000