tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 1 | # ============LICENSE_START=======================================================
|
lukegleeson | 15b93e7 | 2021-07-07 15:25:30 +0100 | [diff] [blame] | 2 | # Copyright (C) 2021 Pantheon.tech
|
| 3 | # Modifications Copyright (C) 2021 Bell Canada
|
| 4 | # Modifications Copyright (C) 2021 Nordix Foundation
|
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 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
|
| 9 | #
|
| 10 | # http://www.apache.org/licenses/LICENSE-2.0
|
lukegleeson | 15b93e7 | 2021-07-07 15:25:30 +0100 | [diff] [blame] | 11 | #
|
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 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.
|
| 17 | #
|
| 18 | # SPDX-License-Identifier: Apache-2.0
|
| 19 | # ============LICENSE_END=========================================================
|
| 20 |
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 21 | server:
|
puthuparambil.aditya | 52cff68 | 2020-11-05 11:34:41 +0000 | [diff] [blame] | 22 | port: 8080
|
Ruslan Kashapov | 708fd66 | 2021-01-21 09:37:05 +0200 | [diff] [blame] | 23 |
|
| 24 | rest:
|
| 25 | api:
|
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 26 | cps-base-path: /cps/api
|
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 27 | ncmp-base-path: /ncmp
|
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 28 | ncmp-inventory-base-path: /ncmpInventory
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 29 |
|
| 30 | spring:
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 31 | main:
|
| 32 | banner-mode: "off"
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 33 | jpa:
|
| 34 | ddl-auto: create
|
| 35 | open-in-view: false
|
| 36 | properties:
|
| 37 | hibernate:
|
| 38 | enable_lazy_load_no_trans: true
|
| 39 | dialect: org.hibernate.dialect.PostgreSQLDialect
|
| 40 |
|
| 41 | datasource:
|
| 42 | url: jdbc:postgresql://${DB_HOST}:5432/cpsdb
|
| 43 | username: ${DB_USERNAME}
|
| 44 | password: ${DB_PASSWORD}
|
| 45 | driverClassName: org.postgresql.Driver
|
| 46 | initialization-mode: always
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 47 |
|
Claudio David Gasparini | 1b8a4dd | 2021-01-13 19:12:25 +0100 | [diff] [blame] | 48 | cache:
|
| 49 | type: caffeine
|
| 50 | cache-names: yangSchema
|
| 51 | caffeine:
|
| 52 | spec: maximumSize=10000,expireAfterAccess=10m
|
puthuparambil.aditya | 495ae8e | 2021-02-23 15:51:00 +0000 | [diff] [blame] | 53 |
|
| 54 | liquibase:
|
| 55 | change-log: classpath:changelog/changelog-master.yaml
|
| 56 | labels: ${LIQUIBASE_LABELS}
|
| 57 |
|
niamhcore | 49a609c | 2021-04-07 11:35:19 +0100 | [diff] [blame] | 58 | servlet:
|
| 59 | multipart:
|
| 60 | enabled: true
|
| 61 | max-file-size: 100MB
|
| 62 | max-request-size: 100MB
|
| 63 |
|
Renu Kumari | ff52b94 | 2021-05-27 23:16:32 -0400 | [diff] [blame] | 64 | kafka:
|
| 65 | bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER:localhost:9092}
|
| 66 | security:
|
| 67 | protocol: PLAINTEXT
|
| 68 | producer:
|
| 69 | value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
|
| 70 | client-id: cps-core
|
| 71 |
|
| 72 | notification:
|
| 73 | data-updated:
|
| 74 | enabled: false
|
Bruno Sakoto | 8db6414 | 2021-08-20 18:59:14 -0400 | [diff] [blame] | 75 | topic: ${CPS_CHANGE_EVENT_TOPIC:cps.data-updated-events}
|
Renu Kumari | 8f01bf6 | 2021-08-17 14:06:53 -0400 | [diff] [blame] | 76 | filters:
|
Renu Kumari | 86c74c7 | 2021-08-19 13:11:00 -0400 | [diff] [blame] | 77 | enabled-dataspaces: ${NOTIFICATION_DATASPACE_FILTER_PATTERNS:""}
|
Renu Kumari | cd04807 | 2021-09-02 10:30:09 -0400 | [diff] [blame] | 78 | async:
|
| 79 | enabled: false
|
| 80 | executor:
|
| 81 | core-pool-size: 2
|
| 82 | max-pool-size: 10
|
| 83 | queue-capacity: 500
|
| 84 | wait-for-tasks-to-complete-on-shutdown: true
|
| 85 | thread-name-prefix: Async-
|
Renu Kumari | 86c74c7 | 2021-08-19 13:11:00 -0400 | [diff] [blame] | 86 |
|
Renu Kumari | ff52b94 | 2021-05-27 23:16:32 -0400 | [diff] [blame] | 87 |
|
JosephKeenan | 2472e61 | 2021-06-23 14:15:52 +0100 | [diff] [blame] | 88 | springdoc:
|
| 89 | swagger-ui:
|
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 90 | disable-swagger-default-url: true
|
| 91 | urlsPrimaryName: cps-core
|
| 92 | urls:
|
| 93 | - name: cps-core
|
| 94 | url: /api-docs/cps-core/openapi.yaml
|
| 95 | - name: cps-ncmp
|
| 96 | url: /api-docs/cps-ncmp/openapi.yaml
|
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 97 | - name: cps-ncmp-inventory
|
| 98 | url: /api-docs/cps-ncmp/openapi-inventory.yaml
|
| 99 |
|
Renu Kumari | 8f01bf6 | 2021-08-17 14:06:53 -0400 | [diff] [blame] | 100 |
|
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 101 | security:
|
| 102 | # comma-separated uri patterns which do not require authorization
|
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 103 | permit-uri: /manage/**,/swagger-ui.html,/swagger-ui/**,/swagger-resources/**,/api-docs/**
|
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 104 | auth:
|
Renu Kumari | 3da5207 | 2021-04-14 10:14:13 -0400 | [diff] [blame] | 105 | username: ${CPS_USERNAME}
|
| 106 | password: ${CPS_PASSWORD}
|
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 107 |
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 108 | # Actuator
|
| 109 | management:
|
puthuparambil.aditya | b46d137 | 2021-07-09 12:51:10 +0100 | [diff] [blame] | 110 | server:
|
| 111 | port: 8081
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 112 | endpoints:
|
| 113 | web:
|
| 114 | base-path: /manage
|
puthuparambil.aditya | b46d137 | 2021-07-09 12:51:10 +0100 | [diff] [blame] | 115 | exposure:
|
| 116 | include: info,health,loggers,prometheus
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 117 | endpoint:
|
| 118 | health:
|
| 119 | show-details: always
|
| 120 | # kubernetes probes: liveness and readiness
|
| 121 | probes:
|
| 122 | enabled: true
|
| 123 |
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 124 | logging:
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 125 | level:
|
| 126 | org:
|
| 127 | springframework: INFO
|
tragait | c328551 | 2021-08-16 15:12:36 +0100 | [diff] [blame] | 128 |
|
| 129 | dmi:
|
| 130 | auth:
|
| 131 | username: ${DMI_USERNAME}
|
| 132 | password: ${DMI_PASSWORD}
|
JosephKeenan | 20b4f9c | 2021-11-23 12:18:28 +0000 | [diff] [blame^] | 133 | api:
|
| 134 | base-path: /dmi
|