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 |
|
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 54 | security:
|
| 55 | # comma-separated uri patterns which do not require authorization
|
| 56 | permit-uri: /manage/health/**,/manage/info,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
|
| 57 | auth:
|
| 58 | username: ${CPS_USERNAME:cpsuser}
|
| 59 | password: ${CPS_PASSWORD:cpsr0cks!}
|
| 60 |
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 61 | # Actuator
|
| 62 | management:
|
| 63 | endpoints:
|
| 64 | web:
|
| 65 | base-path: /manage
|
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 66 | exposure:
|
| 67 | include: info,health,loggers
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 68 | endpoint:
|
| 69 | health:
|
| 70 | show-details: always
|
| 71 | # kubernetes probes: liveness and readiness
|
| 72 | probes:
|
| 73 | enabled: true
|
Ruslan Kashapov | a087b94 | 2021-01-26 08:36:57 +0200 | [diff] [blame] | 74 | loggers:
|
Ruslan Kashapov | 708fd66 | 2021-01-21 09:37:05 +0200 | [diff] [blame] | 75 | enabled: true
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 76 |
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 77 | logging:
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 78 | level:
|
| 79 | org:
|
| 80 | springframework: INFO
|