blob: d9b9e7c38db7655e3722caf44203b1b8e85bc093 [file] [log] [blame]
tragait34a94b92021-03-30 12:02:27 +01001# ============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 Chailb220d742020-09-16 15:23:53 +010018server:
puthuparambil.aditya52cff682020-11-05 11:34:41 +000019 port: 8080
Ruslan Kashapov708fd662021-01-21 09:37:05 +020020
21rest:
22 api:
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010023 cps-base-path: /cps/api
tragait34a94b92021-03-30 12:02:27 +010024 ncmp-base-path: /cps-ncmp/api
Rishi Chailb220d742020-09-16 15:23:53 +010025
26spring:
Rishi Chail8af414a2020-10-08 12:33:33 +010027 main:
28 banner-mode: "off"
Rishi Chail8af414a2020-10-08 12:33:33 +010029 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 Chailb220d742020-09-16 15:23:53 +010043
Claudio David Gasparini1b8a4dd2021-01-13 19:12:25 +010044 cache:
45 type: caffeine
46 cache-names: yangSchema
47 caffeine:
48 spec: maximumSize=10000,expireAfterAccess=10m
puthuparambil.aditya495ae8e2021-02-23 15:51:00 +000049
50 liquibase:
51 change-log: classpath:changelog/changelog-master.yaml
52 labels: ${LIQUIBASE_LABELS}
53
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020054security:
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 Kashapovf4d1c982020-10-29 11:39:31 +020061# Actuator
62management:
63 endpoints:
64 web:
65 base-path: /manage
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010066 exposure:
67 include: info,health,loggers
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +020068 endpoint:
69 health:
70 show-details: always
71 # kubernetes probes: liveness and readiness
72 probes:
73 enabled: true
Ruslan Kashapova087b942021-01-26 08:36:57 +020074 loggers:
Ruslan Kashapov708fd662021-01-21 09:37:05 +020075 enabled: true
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +020076
Rishi Chailb220d742020-09-16 15:23:53 +010077logging:
Rishi Chail8af414a2020-10-08 12:33:33 +010078 level:
79 org:
80 springframework: INFO