Fix upload size to be greater than 1MB
[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     servlet:\r
55         multipart:\r
56             enabled: true\r
57             max-file-size: 100MB\r
58             max-request-size: 100MB\r
59 \r
60 security:\r
61     # comma-separated uri patterns which do not require authorization\r
62     permit-uri: /manage/health/**,/manage/info,/swagger-ui/**,/swagger-resources/**,/v3/api-docs\r
63     auth:\r
64         username: ${CPS_USERNAME:cpsuser}\r
65         password: ${CPS_PASSWORD:cpsr0cks!}\r
66 \r
67 # Actuator\r
68 management:\r
69     endpoints:\r
70         web:\r
71             base-path: /manage\r
72         exposure:\r
73             include: info,health,loggers\r
74     endpoint:\r
75         health:\r
76             show-details: always\r
77             # kubernetes probes: liveness and readiness\r
78             probes:\r
79                 enabled: true\r
80         loggers:\r
81             enabled: true\r
82 \r
83 logging:\r
84     level:\r
85         org:\r
86             springframework: INFO\r