[COMMON] Add custom certs into AAF truststore
[oom.git] / kubernetes / cps / resources / config / application-helm.yml
1 {{/*
2   #  Copyright (C) 2021 Pantheon.tech
3   #  Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
4   #  Modifications Copyright (C) 2021 Nordix Foundation. All rights reserved.
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
11   #
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 ---
19 server:
20   port: 8080
21
22 rest:
23   api:
24     cps-base-path: /cps/api
25     xnf-base-path: /cps-nf-proxy/api
26
27 spring:
28   main:
29     banner-mode: "off"
30   jpa:
31     ddl-auto: create
32     open-in-view: false
33     properties:
34       hibernate:
35         enable_lazy_load_no_trans: true
36         dialect: org.hibernate.dialect.PostgreSQLDialect
37
38   datasource:
39     url: jdbc:postgresql://{{ .Values.postgres.service.name2 }}:5432/{{ .Values.postgres.config.pgDatabase }}
40     username: ${DB_USERNAME}
41     password: ${DB_PASSWORD}
42     driverClassName: org.postgresql.Driver
43     initialization-mode: always
44
45   cache:
46     type: caffeine
47     cache-names: yangSchema
48     caffeine:
49       spec: maximumSize=10000,expireAfterAccess=10m
50
51   liquibase:
52     change-log: classpath:changelog/changelog-master.yaml
53     labels: {{ .Values.config.liquibaseLabels }}
54
55 security:
56   # comma-separated uri patterns which do not require authorization
57   permit-uri: /manage/health/**,/manage/info,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
58   auth:
59     username: ${CPS_USERNAME}
60     password: ${CPS_PASSWORD}
61
62 # Actuator
63 management:
64   endpoints:
65     web:
66       base-path: /manage
67     exposure:
68       include: info,health,loggers
69   endpoint:
70     health:
71       show-details: always
72       # kubernetes probes: liveness and readiness
73       probes:
74         enabled: true
75     loggers:
76       enabled: true
77
78 logging:
79   level:
80     org:
81       springframework: {{ .Values.logging.level }}
82
83 {{- if .Values.config.additional }}
84 {{ toYaml .Values.config.additional | nindent 2 }}
85 {{- end }}
86
87 # Last empty line is required otherwise the last property will be missing from application.yml file in the pod.