Add multi-layer RIC instance selector
[portal/ric-dashboard.git] / dashboard / 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 # Instance-specific URL prefixes must be supplied at deployment time
49
50 # A1 Mediator
51 a1med:
52     url:
53         # uses pltUrlPrefix
54         suffix: /a1mediator
55
56 # App Manager
57 appmgr:
58     url:
59         # uses pltUrlPrefix
60         suffix: /appmgr/ric/v1
61
62 # E2 Manager
63 e2mgr:
64     url:
65         # uses pltUrlPrefix
66         suffix: /e2mgr/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     plt:
73         url:
74             # uses caasUrlPrefix
75             suffix: /api
76
77 # Mimic slow endpoints by defining sleep period, in milliseconds
78 mock:
79     config:
80         delay: 0
81
82 # Kibana report on metrics
83 metrics:
84     url:
85         ac: http://jar-app-props-kibana-url-ac
86         mc: http://jar-app-props-kibana-url-mc
87
88 # Regions and instances
89 # The regions are a just convenience for users,
90 # the keys must be unique across all instances.
91 ricinstances:
92     regions:
93         -
94           name: Region AAA
95           instances:
96               -
97                 key: i1
98                 name: Primary RIC Instance
99                 appUrlPrefix: App prefix 1
100                 caasUrlPrefix: Caas prefix 1
101                 pltUrlPrefix: Plt prefix 1
102               -
103                 key: i2
104                 name: RIC Instance Nr Two
105                 appUrlPrefix: App prefix 2
106                 caasUrlPrefix: Caas prefix 2
107                 pltUrlPrefix: Plt prefix 2
108         -
109           name: Region DDD
110           instances:
111               -
112                 key: i3
113                 name: RIC Instance in region D
114                 appUrlPrefix: App prefix 3
115                 caasUrlPrefix: Caas prefix 3
116                 pltUrlPrefix: Plt prefix 3