Fix upload size to be greater than 1MB
[cps.git] / cps-application / src / main / resources / application.yml
index c3ceecd..1bcb496 100644 (file)
@@ -1,10 +1,27 @@
+#  ============LICENSE_START=======================================================\r
+#  Modification (C) 2021 Nordix Foundation\r
+#  ================================================================================\r
+#  Licensed under the Apache License, Version 2.0 (the "License");\r
+#  you may not use this file except in compliance with the License.\r
+#  You may obtain a copy of the License at\r
+#\r
+#        http://www.apache.org/licenses/LICENSE-2.0\r
+#  Unless required by applicable law or agreed to in writing, software\r
+#  distributed under the License is distributed on an "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+#  See the License for the specific language governing permissions and\r
+#  limitations under the License.\r
+#\r
+#  SPDX-License-Identifier: Apache-2.0\r
+#  ============LICENSE_END=========================================================\r
+\r
 server:\r
     port: 8080\r
 \r
 rest:\r
     api:\r
         cps-base-path: /cps/api\r
-        xnf-base-path: /cps-nf-proxy/api\r
+        ncmp-base-path: /cps-ncmp/api\r
 \r
 spring:\r
     main:\r
@@ -29,6 +46,24 @@ spring:
         cache-names: yangSchema\r
         caffeine:\r
             spec: maximumSize=10000,expireAfterAccess=10m\r
+\r
+    liquibase:\r
+        change-log: classpath:changelog/changelog-master.yaml\r
+        labels: ${LIQUIBASE_LABELS}\r
+\r
+    servlet:\r
+        multipart:\r
+            enabled: true\r
+            max-file-size: 100MB\r
+            max-request-size: 100MB\r
+\r
+security:\r
+    # comma-separated uri patterns which do not require authorization\r
+    permit-uri: /manage/health/**,/manage/info,/swagger-ui/**,/swagger-resources/**,/v3/api-docs\r
+    auth:\r
+        username: ${CPS_USERNAME:cpsuser}\r
+        password: ${CPS_PASSWORD:cpsr0cks!}\r
+\r
 # Actuator\r
 management:\r
     endpoints:\r