a14f7b1652e6dc0355d73ec4d3ed96341a2c624b
[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 # Regions and instances
78 # The regions are a just convenience for users,
79 # the keys must be unique across all instances.
80 ricinstances:
81     regions:
82         -
83           name: Region AAA
84           instances:
85               -
86                 key: i1
87                 name: Primary RIC Instance
88                 appUrlPrefix: App prefix 1
89                 caasUrlPrefix: Caas prefix 1
90                 pltUrlPrefix: Plt prefix 1
91               -
92                 key: i2
93                 name: RIC Instance Nr Two
94                 appUrlPrefix: App prefix 2
95                 caasUrlPrefix: Caas prefix 2
96                 pltUrlPrefix: Plt prefix 2
97         -
98           name: Region DDD
99           instances:
100               -
101                 key: i3
102                 name: RIC Instance in region D
103                 appUrlPrefix: App prefix 3
104                 caasUrlPrefix: Caas prefix 3
105                 pltUrlPrefix: Plt prefix 3