Moved application.yml under cps-application
[cps.git] / cps-application / src / main / resources / application.yml
1 #  ============LICENSE_START=======================================================\r
2 #  Modification (C) 2021 Nordix Foundation\r
3 #  ================================================================================\r
4 #  Licensed under the Apache License, Version 2.0 (the "License");\r
5 #  you may not use this file except in compliance with the License.\r
6 #  You may obtain a copy of the License at\r
7 #\r
8 #        http://www.apache.org/licenses/LICENSE-2.0\r
9 #  Unless required by applicable law or agreed to in writing, software\r
10 #  distributed under the License is distributed on an "AS IS" BASIS,\r
11 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
12 #  See the License for the specific language governing permissions and\r
13 #  limitations under the License.\r
14 #\r
15 #  SPDX-License-Identifier: Apache-2.0\r
16 #  ============LICENSE_END=========================================================\r
17 \r
18 server:\r
19     port: 8080\r
20 \r
21 rest:\r
22     api:\r
23         cps-base-path: /cps/api\r
24         ncmp-base-path: /cps-ncmp/api\r
25 \r
26 spring:\r
27     main:\r
28         banner-mode: "off"\r
29     jpa:\r
30         ddl-auto: create\r
31         open-in-view: false\r
32         properties:\r
33             hibernate:\r
34                 enable_lazy_load_no_trans: true\r
35                 dialect: org.hibernate.dialect.PostgreSQLDialect\r
36 \r
37     datasource:\r
38         url: jdbc:postgresql://${DB_HOST}:5432/cpsdb\r
39         username: ${DB_USERNAME}\r
40         password: ${DB_PASSWORD}\r
41         driverClassName: org.postgresql.Driver\r
42         initialization-mode: always\r
43 \r
44     cache:\r
45         type: caffeine\r
46         cache-names: yangSchema\r
47         caffeine:\r
48             spec: maximumSize=10000,expireAfterAccess=10m\r
49 \r
50     liquibase:\r
51         change-log: classpath:changelog/changelog-master.yaml\r
52         labels: ${LIQUIBASE_LABELS}\r
53 \r
54 security:\r
55     # comma-separated uri patterns which do not require authorization\r
56     permit-uri: /manage/health/**,/manage/info,/swagger-ui/**,/swagger-resources/**,/v3/api-docs\r
57     auth:\r
58         username: ${CPS_USERNAME:cpsuser}\r
59         password: ${CPS_PASSWORD:cpsr0cks!}\r
60 \r
61 # Actuator\r
62 management:\r
63     endpoints:\r
64         web:\r
65             base-path: /manage\r
66         exposure:\r
67             include: info,health,loggers\r
68     endpoint:\r
69         health:\r
70             show-details: always\r
71             # kubernetes probes: liveness and readiness\r
72             probes:\r
73                 enabled: true\r
74         loggers:\r
75             enabled: true\r
76 \r
77 logging:\r
78     level:\r
79         org:\r
80             springframework: INFO\r