1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2021 Pantheon.tech
3 # Modifications Copyright (C) 2021-2022 Bell Canada
4 # Modifications Copyright (C) 2021-2023 Nordix Foundation
5 # ================================================================================
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
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # 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.
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
26 cps-base-path: /cps/api
28 ncmp-inventory-base-path: /ncmpInventory
34 name: "cps-application"
40 hibernate.enable_lazy_load_no_trans: true
41 hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
44 url: jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/cpsdb
45 username: ${DB_USERNAME}
46 password: ${DB_PASSWORD}
47 driverClassName: org.postgresql.Driver
52 connectionTimeout: 120000
53 leakDetectionThreshold: 30000
54 pool-name: CpsDatabasePool
58 cache-names: yangSchema
60 spec: maximumSize=10000,expireAfterAccess=10m
63 change-log: classpath:changelog/changelog-master.yaml
64 labels: ${LIQUIBASE_LABELS}
70 max-request-size: 100MB
73 bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER:localhost:9092}
77 value-serializer: io.cloudevents.kafka.CloudEventSerializer
80 group-id: ${NCMP_CONSUMER_GROUP_ID:ncmp-group}
81 key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
82 value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
84 spring.deserializer.key.delegate.class: org.apache.kafka.common.serialization.StringDeserializer
85 spring.deserializer.value.delegate.class: io.cloudevents.kafka.CloudEventDeserializer
86 spring.json.use.type.headers: false
89 default-property-inclusion: NON_NULL
91 FAIL_ON_EMPTY_BEANS: false
98 topic: ${NCMP_ASYNC_M2M_TOPIC:ncmp-async-m2m}
100 subscription-topic: ${NCMP_CM_AVC_SUBSCRIPTION:subscription}
101 subscription-forward-topic-prefix: ${NCMP_FORWARD_CM_AVC_SUBSCRIPTION:ncmp-dmi-cm-avc-subscription-}
102 subscription-response-topic: ${NCMP_RESPONSE_CM_AVC_SUBSCRIPTION:dmi-ncmp-cm-avc-subscription}
103 subscription-outcome-topic: ${NCMP_OUTCOME_CM_AVC_SUBSCRIPTION:subscription-response}
104 cm-events-topic: ${NCMP_CM_EVENTS_TOPIC:cm-events}
107 topic: ${LCM_EVENTS_TOPIC:ncmp-events}
110 topic: ${DMI_CM_EVENTS_TOPIC:dmi-cm-events}
112 topic: ${DMI_DEVICE_HEARTBEAT_TOPIC:dmi-device-heartbeat}
118 topic: ${CPS_CHANGE_EVENT_TOPIC:cps.data-updated-events}
120 enabled-dataspaces: ${NOTIFICATION_DATASPACE_FILTER_PATTERNS:""}
126 wait-for-tasks-to-complete-on-shutdown: true
127 thread-name-prefix: Async-
128 time-out-value-in-ms: 2000
132 disable-swagger-default-url: true
133 urlsPrimaryName: cps-core
136 url: /api-docs/cps-core/openapi.yaml
138 url: /api-docs/cps-ncmp/openapi.yaml
139 - name: cps-ncmp-inventory
140 url: /api-docs/cps-ncmp/openapi-inventory.yaml
142 permit-uri: /manage/**,/swagger-ui.html,/swagger-ui/**,/swagger-resources/**,/api-docs/**
145 # comma-separated uri patterns which do not require authorization
147 username: ${CPS_USERNAME}
148 password: ${CPS_PASSWORD}
158 include: info,health,loggers,prometheus
162 # kubernetes probes: liveness and readiness
170 springframework: INFO
176 username: ${DMI_USERNAME}
177 password: ${DMI_PASSWORD}
178 enabled: ${DMI_AUTH_ENABLED:true}
183 advised-modules-sync:
186 sleep-time-ms: 300000
189 subscription-forwarding:
190 dmi-response-timeout-ms: 30000
194 dmi-availability-watchdog-ms: 30000
196 modules-sync-watchdog:
198 parallelism-level: 10
202 maximum-attempt-count: 20
204 # Custom Hazelcast Config.
206 cluster-name: ${CPS_NCMP_CACHES_CLUSTER_NAME:"cps-and-ncmp-common-cache-cluster"}
209 enabled: ${HAZELCAST_MODE_KUBERNETES_ENABLED:false}
210 service-name: ${CPS_NCMP_SERVICE_NAME:"cps-and-ncmp-service"}