blob: 1bcb496a8aa0d0049b2e056fc546d54119a7200f [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
niamhcore49a609c2021-04-07 11:35:19 +010054 servlet:
55 multipart:
56 enabled: true
57 max-file-size: 100MB
58 max-request-size: 100MB
59
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020060security:
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:
64 username: ${CPS_USERNAME:cpsuser}
65 password: ${CPS_PASSWORD:cpsr0cks!}
66
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +020067# Actuator
68management:
69 endpoints:
70 web:
71 base-path: /manage
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010072 exposure:
73 include: info,health,loggers
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +020074 endpoint:
75 health:
76 show-details: always
77 # kubernetes probes: liveness and readiness
78 probes:
79 enabled: true
Ruslan Kashapova087b942021-01-26 08:36:57 +020080 loggers:
Ruslan Kashapov708fd662021-01-21 09:37:05 +020081 enabled: true
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +020082
Rishi Chailb220d742020-09-16 15:23:53 +010083logging:
Rishi Chail8af414a2020-10-08 12:33:33 +010084 level:
85 org:
86 springframework: INFO