Add RIC instance list and controller method
[portal/ric-dashboard.git] / webapp-backend / src / main / resources / application.yaml
1 # ========================LICENSE_START=================================
2 # O-RAN-SC
3 # %%
4 # Copyright (C) 2019 AT&T Intellectual Property
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 # ========================LICENSE_END===================================
18
19 # Defines RIC Dashboard property keys and default values.
20 # Create a copy in the launch directory to override values.
21 ---
22
23 # This file defines no profile(s).
24 # These properties are largely ignored when the test profile is active.
25
26 # A spring property but without a "spring" prefix;
27 # the port number is chosen RANDOMLY when running tests
28 server:
29     port: 8080
30
31 # path to file that stores user details;
32 # use a persistent volume in a K8S deployment
33 userfile: users.json
34
35 # Dashboard properties related to Portal
36 portalapi:
37     # boolean flag whether to enforce Portal user and roles on requests
38     security: true
39     # class that decrypts ciphertext from Portal
40     decryptor: org.oransc.ric.portal.dashboard.portalapi.PortalSdkDecryptorAes
41     # name of request cookie with user ID
42     usercookie: UserId
43     # portal credentials must be supplied at deployment time
44     appname: RIC Dashboard
45     username:
46     password:
47
48 # endpoint URLs must be supplied at deployment time
49
50 # A1 Mediator
51 a1med:
52     url:
53         prefix: http://jar-app-props-default-A1-URL-prefix
54         suffix:
55
56 # App Manager
57 appmgr:
58     url:
59         prefix: http://jar-app-props-default-Xapp-Mgr-URL
60         suffix: /ric/v1
61
62 # E2 Manager
63 e2mgr:
64     url:
65         prefix: http://jar-app-props-default-E2-URL
66         suffix: /v1
67
68 # Kubernetes API via https://github.com/nokia/caas-ingress
69 caasingress:
70     # Set insecure=true to disable SSL certificate and hostname checking
71     insecure: true
72     aux:
73         url:
74             prefix: https://jar-app-props-default-caas-ingress-aux-URL
75             suffix: /api
76     plt:
77         url:
78             prefix: https://jar-app-props-default-caas-ingress-plt-URL
79             suffix: /api
80
81 # Mimic slow endpoints by defining sleep period, in milliseconds
82 mock:
83     config:
84         delay: 0
85
86 # Kibana report on metrics
87 metrics:
88     url:
89         ac: http://jar-app-props-kibana-url-ac
90         mc: http://jar-app-props-kibana-url-mc
91
92 # Instances
93 ric-instance-list:
94     instances:
95         -
96           key: i1
97           name: Primary RIC Instance
98         -
99           key: i2
100           name: RIC Instance Nr Two