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
|
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 27 | ncmp-base-path: /cps-ncmp/api
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 28 |
|
| 29 | spring:
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 30 | main:
|
| 31 | banner-mode: "off"
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 32 | 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 Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 46 |
|
Claudio David Gasparini | 1b8a4dd | 2021-01-13 19:12:25 +0100 | [diff] [blame] | 47 | cache:
|
| 48 | type: caffeine
|
| 49 | cache-names: yangSchema
|
| 50 | caffeine:
|
| 51 | spec: maximumSize=10000,expireAfterAccess=10m
|
puthuparambil.aditya | 495ae8e | 2021-02-23 15:51:00 +0000 | [diff] [blame] | 52 |
|
| 53 | liquibase:
|
| 54 | change-log: classpath:changelog/changelog-master.yaml
|
| 55 | labels: ${LIQUIBASE_LABELS}
|
| 56 |
|
niamhcore | 49a609c | 2021-04-07 11:35:19 +0100 | [diff] [blame] | 57 | servlet:
|
| 58 | multipart:
|
| 59 | enabled: true
|
| 60 | max-file-size: 100MB
|
| 61 | max-request-size: 100MB
|
| 62 |
|
Renu Kumari | ff52b94 | 2021-05-27 23:16:32 -0400 | [diff] [blame] | 63 | 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 |
|
| 71 | notification:
|
| 72 | data-updated:
|
| 73 | enabled: false
|
| 74 | topic: ${CPS_CHANGE_EVENT_TOPIC:cps.cfg-state-events}
|
Renu Kumari | 8f01bf6 | 2021-08-17 14:06:53 -0400 | [diff] [blame] | 75 | filters:
|
| 76 | enabled-dataspaces: ${DATASPACE_FILTER_PATTERNS:""}
|
Renu Kumari | ff52b94 | 2021-05-27 23:16:32 -0400 | [diff] [blame] | 77 |
|
JosephKeenan | 2472e61 | 2021-06-23 14:15:52 +0100 | [diff] [blame] | 78 | springdoc:
|
| 79 | swagger-ui:
|
| 80 | url: /openapi.yml
|
| 81 | path: /swagger-ui/index.html
|
Renu Kumari | 8f01bf6 | 2021-08-17 14:06:53 -0400 | [diff] [blame] | 82 |
|
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 83 | security:
|
| 84 | # comma-separated uri patterns which do not require authorization
|
puthuparambil.aditya | b46d137 | 2021-07-09 12:51:10 +0100 | [diff] [blame] | 85 | permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
|
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 86 | auth:
|
Renu Kumari | 3da5207 | 2021-04-14 10:14:13 -0400 | [diff] [blame] | 87 | username: ${CPS_USERNAME}
|
| 88 | password: ${CPS_PASSWORD}
|
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 89 |
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 90 | # Actuator
|
| 91 | management:
|
puthuparambil.aditya | b46d137 | 2021-07-09 12:51:10 +0100 | [diff] [blame] | 92 | server:
|
| 93 | port: 8081
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 94 | endpoints:
|
| 95 | web:
|
| 96 | base-path: /manage
|
puthuparambil.aditya | b46d137 | 2021-07-09 12:51:10 +0100 | [diff] [blame] | 97 | exposure:
|
| 98 | include: info,health,loggers,prometheus
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 99 | endpoint:
|
| 100 | health:
|
| 101 | show-details: always
|
| 102 | # kubernetes probes: liveness and readiness
|
| 103 | probes:
|
| 104 | enabled: true
|
| 105 |
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 106 | logging:
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 107 | level:
|
| 108 | org:
|
| 109 | springframework: INFO
|