tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 1 | # ============LICENSE_START=======================================================
|
| 2 | # Modification (C) 2021 Nordix Foundation
|
| 3 | # ================================================================================
|
| 4 | # Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 | # you may not use this file except in compliance with the License.
|
| 6 | # You may obtain a copy of the License at
|
| 7 | #
|
| 8 | # http://www.apache.org/licenses/LICENSE-2.0
|
| 9 | # Unless required by applicable law or agreed to in writing, software
|
| 10 | # distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 | # See the License for the specific language governing permissions and
|
| 13 | # limitations under the License.
|
| 14 | #
|
| 15 | # SPDX-License-Identifier: Apache-2.0
|
| 16 | # ============LICENSE_END=========================================================
|
| 17 |
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 18 | server:
|
puthuparambil.aditya | 52cff68 | 2020-11-05 11:34:41 +0000 | [diff] [blame] | 19 | port: 8080
|
Ruslan Kashapov | 708fd66 | 2021-01-21 09:37:05 +0200 | [diff] [blame] | 20 |
|
| 21 | rest:
|
| 22 | api:
|
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 23 | cps-base-path: /cps/api
|
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 24 | ncmp-base-path: /cps-ncmp/api
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 25 |
|
| 26 | spring:
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 27 | main:
|
| 28 | banner-mode: "off"
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 29 | jpa:
|
| 30 | ddl-auto: create
|
| 31 | open-in-view: false
|
| 32 | properties:
|
| 33 | hibernate:
|
| 34 | enable_lazy_load_no_trans: true
|
| 35 | dialect: org.hibernate.dialect.PostgreSQLDialect
|
| 36 |
|
| 37 | datasource:
|
| 38 | url: jdbc:postgresql://${DB_HOST}:5432/cpsdb
|
| 39 | username: ${DB_USERNAME}
|
| 40 | password: ${DB_PASSWORD}
|
| 41 | driverClassName: org.postgresql.Driver
|
| 42 | initialization-mode: always
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 43 |
|
Claudio David Gasparini | 1b8a4dd | 2021-01-13 19:12:25 +0100 | [diff] [blame] | 44 | cache:
|
| 45 | type: caffeine
|
| 46 | cache-names: yangSchema
|
| 47 | caffeine:
|
| 48 | spec: maximumSize=10000,expireAfterAccess=10m
|
puthuparambil.aditya | 495ae8e | 2021-02-23 15:51:00 +0000 | [diff] [blame] | 49 |
|
| 50 | liquibase:
|
| 51 | change-log: classpath:changelog/changelog-master.yaml
|
| 52 | labels: ${LIQUIBASE_LABELS}
|
| 53 |
|
niamhcore | 49a609c | 2021-04-07 11:35:19 +0100 | [diff] [blame] | 54 | servlet:
|
| 55 | multipart:
|
| 56 | enabled: true
|
| 57 | max-file-size: 100MB
|
| 58 | max-request-size: 100MB
|
| 59 |
|
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 60 | security:
|
| 61 | # comma-separated uri patterns which do not require authorization
|
| 62 | permit-uri: /manage/health/**,/manage/info,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
|
| 63 | auth:
|
Renu Kumari | 3da5207 | 2021-04-14 10:14:13 -0400 | [diff] [blame] | 64 | username: ${CPS_USERNAME}
|
| 65 | password: ${CPS_PASSWORD}
|
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 66 |
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 67 | # Actuator
|
| 68 | management:
|
| 69 | endpoints:
|
| 70 | web:
|
| 71 | base-path: /manage
|
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 72 | exposure:
|
| 73 | include: info,health,loggers
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 74 | endpoint:
|
| 75 | health:
|
| 76 | show-details: always
|
| 77 | # kubernetes probes: liveness and readiness
|
| 78 | probes:
|
| 79 | enabled: true
|
Ruslan Kashapov | a087b94 | 2021-01-26 08:36:57 +0200 | [diff] [blame] | 80 | loggers:
|
Ruslan Kashapov | 708fd66 | 2021-01-21 09:37:05 +0200 | [diff] [blame] | 81 | enabled: true
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 82 |
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 83 | logging:
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 84 | level:
|
| 85 | org:
|
| 86 | springframework: INFO
|