a838556f2b3b7d41fbbb1de9ce4222991c82d436
[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 # paths to files that store details;
32 # use a persistent volume in a K8S deployment
33 userfile: dashboard-users.json
34 statsfile: dashboard-stats.json
35
36 # Dashboard properties related to Portal
37 portalapi:
38     # boolean flag whether to enforce Portal user and roles on requests
39     security: true
40     # class that decrypts ciphertext from Portal
41     decryptor: org.oransc.ric.portal.dashboard.portalapi.PortalSdkDecryptorAes
42     # name of request cookie with user ID
43     usercookie: UserId
44     # portal credentials must be supplied at deployment time
45     appname: RIC Dashboard
46     username:
47     password:
48
49 # Instance-specific URL prefixes must be supplied at deployment time
50
51 # App Manager
52 appmgr:
53     url:
54         # uses pltUrlPrefix
55         suffix: /appmgr/ric/v1
56
57 # E2 Manager
58 e2mgr:
59     url:
60         # uses pltUrlPrefix
61         suffix: /e2mgr/v1
62
63 # Kubernetes API via https://github.com/nokia/caas-ingress
64 caasingress:
65     # Set insecure=true to disable SSL certificate and hostname checking
66     insecure: true
67     plt:
68         url:
69             # uses caasUrlPrefix
70             suffix: /api
71
72 # Mimic slow endpoints by defining sleep period, in milliseconds
73 mock:
74     config:
75         delay: 0
76
77 # Kibana report on metrics
78 metrics:
79     url:
80         mc: http://jar-app-props-kibana-url-mc
81         ml: http://jar-app-props-kibana-url-ml
82
83 # Regions and instances
84 # The regions are a just convenience for users,
85 # the keys must be unique across all instances.
86 ricinstances:
87     regions:
88         -
89           name: Region AAA
90           instances:
91               -
92                 key: i1
93                 name: Primary RIC Instance
94                 appUrlPrefix: App prefix 1
95                 caasUrlPrefix: Caas prefix 1
96                 pltUrlPrefix: Plt prefix 1
97               -
98                 key: i2
99                 name: RIC Instance Nr Two
100                 appUrlPrefix: App prefix 2
101                 caasUrlPrefix: Caas prefix 2
102                 pltUrlPrefix: Plt prefix 2
103         -
104           name: Region DDD
105           instances:
106               -
107                 key: i3
108                 name: RIC Instance in region D
109                 appUrlPrefix: App prefix 3
110                 caasUrlPrefix: Caas prefix 3
111                 pltUrlPrefix: Plt prefix 3