Reorganize dashboard into subfolders
[portal/ric-dashboard.git] / dashboard / webapp-backend / src / main / resources / application.yaml
diff --git a/dashboard/webapp-backend/src/main/resources/application.yaml b/dashboard/webapp-backend/src/main/resources/application.yaml
new file mode 100644 (file)
index 0000000..da8fe99
--- /dev/null
@@ -0,0 +1,116 @@
+# ========================LICENSE_START=================================
+# O-RAN-SC
+# %%
+# Copyright (C) 2019 AT&T Intellectual Property
+# %%
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# 
+#      http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ========================LICENSE_END===================================
+
+# Defines RIC Dashboard property keys and default values.
+# Create a copy in the launch directory to override values.
+---
+
+# This file defines no profile(s).
+# These properties are largely ignored when the test profile is active.
+
+# A spring property but without a "spring" prefix;
+# the port number is chosen RANDOMLY when running tests
+server:
+    port: 8080
+
+# path to file that stores user details;
+# use a persistent volume in a K8S deployment
+userfile: users.json
+
+# Dashboard properties related to Portal
+portalapi:
+    # boolean flag whether to enforce Portal user and roles on requests
+    security: true
+    # class that decrypts ciphertext from Portal
+    decryptor: org.oransc.ric.portal.dashboard.portalapi.PortalSdkDecryptorAes
+    # name of request cookie with user ID
+    usercookie: UserId
+    # portal credentials must be supplied at deployment time
+    appname: RIC Dashboard
+    username:
+    password:
+
+# Instance-specific URL prefixes must be supplied at deployment time
+
+# A1 Mediator
+a1med:
+    url:
+        # uses pltUrlPrefix
+        suffix: /a1mediator
+
+# App Manager
+appmgr:
+    url:
+        # uses pltUrlPrefix
+        suffix: /appmgr/ric/v1
+
+# E2 Manager
+e2mgr:
+    url:
+        # uses pltUrlPrefix
+        suffix: /e2mgr/v1
+
+# Kubernetes API via https://github.com/nokia/caas-ingress
+caasingress:
+    # Set insecure=true to disable SSL certificate and hostname checking
+    insecure: true
+    plt:
+        url:
+            # uses caasUrlPrefix
+            suffix: /api
+
+# Mimic slow endpoints by defining sleep period, in milliseconds
+mock:
+    config:
+        delay: 0
+
+# Kibana report on metrics
+metrics:
+    url:
+        ac: http://jar-app-props-kibana-url-ac
+        mc: http://jar-app-props-kibana-url-mc
+
+# Regions and instances
+# The regions are a just convenience for users,
+# the keys must be unique across all instances.
+ricinstances:
+    regions:
+        -
+          name: Region AAA
+          instances:
+              -
+                key: i1
+                name: Primary RIC Instance
+                appUrlPrefix: App prefix 1
+                caasUrlPrefix: Caas prefix 1
+                pltUrlPrefix: Plt prefix 1
+              -
+                key: i2
+                name: RIC Instance Nr Two
+                appUrlPrefix: App prefix 2
+                caasUrlPrefix: Caas prefix 2
+                pltUrlPrefix: Plt prefix 2
+        -
+          name: Region DDD
+          instances:
+              -
+                key: i3
+                name: RIC Instance in region D
+                appUrlPrefix: App prefix 3
+                caasUrlPrefix: Caas prefix 3
+                pltUrlPrefix: Plt prefix 3