5b936e3a55d88f845170f14dcb8acffe40644d10
[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: users.json
34 statsfile: 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 # A1 Mediator
52 a1med:
53     url:
54         # uses pltUrlPrefix
55         suffix: /a1mediator
56
57 # App Manager
58 appmgr:
59     url:
60         # uses pltUrlPrefix
61         suffix: /appmgr/ric/v1
62
63 # E2 Manager
64 e2mgr:
65     url:
66         # uses pltUrlPrefix
67         suffix: /e2mgr/v1
68
69 # Kubernetes API via https://github.com/nokia/caas-ingress
70 caasingress:
71     # Set insecure=true to disable SSL certificate and hostname checking
72     insecure: true
73     plt:
74         url:
75             # uses caasUrlPrefix
76             suffix: /api
77
78 # Mimic slow endpoints by defining sleep period, in milliseconds
79 mock:
80     config:
81         delay: 0
82
83 # Kibana report on metrics
84 metrics:
85     url:
86         mc: http://jar-app-props-kibana-url-mc
87         ml: http://jar-app-props-kibana-url-ml
88
89 # Regions and instances
90 # The regions are a just convenience for users,
91 # the keys must be unique across all instances.
92 ricinstances:
93     regions:
94         -
95           name: Region AAA
96           instances:
97               -
98                 key: i1
99                 name: Primary RIC Instance
100                 appUrlPrefix: App prefix 1
101                 caasUrlPrefix: Caas prefix 1
102                 pltUrlPrefix: Plt prefix 1
103               -
104                 key: i2
105                 name: RIC Instance Nr Two
106                 appUrlPrefix: App prefix 2
107                 caasUrlPrefix: Caas prefix 2
108                 pltUrlPrefix: Plt prefix 2
109         -
110           name: Region DDD
111           instances:
112               -
113                 key: i3
114                 name: RIC Instance in region D
115                 appUrlPrefix: App prefix 3
116                 caasUrlPrefix: Caas prefix 3
117                 pltUrlPrefix: Plt prefix 3