forked from SAP-samples/hana-shine-xsa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mta.yaml
266 lines (235 loc) · 6.83 KB
/
mta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
_schema-version: '2.0'
ID: com.sap.refapps.shine
version: 1.7.4
modules:
- name: shine-user-db
type: hdb
path: user-db
requires:
- name: shine-user-container
properties:
TARGET_CONTAINER: '~{user-container-name}'
- name: shine-core-db
type: hdb
path: core-db
requires:
- name: shine-container
properties:
TARGET_CONTAINER: '~{container-name}'
- name: shine-user-container
group: SERVICE_REPLACEMENTS
properties:
key: hdi-user-service
service: '~{user-container-name}'
- name: shine-user-db
- name: shine-core-node
type: nodejs
path: core-node
parameters:
host: shine-core-node
register-service-url: true
service-name: shine-core-node
service-url: '${default-url}'
properties:
UAA_SERVICE_NAME: shine-uaa
SAP_JWT_TRUST_ACL: "[{\"clientid\":\"*\",\"identityzone\":\"*\"}]"
provides:
- name: core_node_api
properties:
url: '${default-url}'
requires:
- name: shine-scheduler
- name: shine-uaa
- name: shine-auditlog
- name: shine-container
- name: shine-core-db
- name: secureStore
- name: shine-user-xsjs
type: nodejs
path: user-xsjs
parameters:
host: shine-user-xsjs
register-service-url: true
service-name: shine-user-xsjs
service-url: '${default-url}'
properties:
SAP_JWT_TRUST_ACL: '[{"clientid":"*","identityzone":"*"}]'
provides:
- name: user_xsjs_api
properties:
url: '${default-url}'
requires:
- name: shine-uaa
- name: shine-user-container
- name: shine-user-db
- name: shine-auditlog
- name: shine-web
type: html5
path: web
provides:
- name: web
properties:
ui-url: '${default-url}'
parameters:
host: shine-web
register-service-url: true
service-name: shine-web
service-url: '${default-url}'
requires:
- name: shine-uaa
- name: sapui5-provider
- name: ui5Service
group: destinations
properties:
name: ui5Service
url: ~{url}
forwardAuthToken: true
- name: core_node_api
group: destinations
properties:
name: core-node-backend
url: '~{url}'
forwardAuthToken: true
- name: core_xsjs_api
group: destinations
properties:
name: core-xsjs-backend
url: '~{url}'
forwardAuthToken: true
- name: user_xsjs_api
group: destinations
properties:
name: user-backend
url: '~{url}'
forwardAuthToken: true
- name: uaa
group: destinations
properties:
name: uaa
url: ~{url}
forwardAuthToken: true
- name: shine-core-xsjs
type: nodejs
path: core-xsjs
provides:
- name: core_xsjs_api
properties:
url: ${default-url}
parameters:
host: shine-core-xsjs
register-service-url: true
service-name: shine-core-xsjs
service-url: '${default-url}'
requires:
- name: shine-uaa
- name: shine-container
- name: secureStore
- name: shine-auditlog
- name: shine-site-web
type: javascript.nodejs
path: site-web/
requires:
- name: shine-uaa
- name: sap-portal-services-host
- name: controller
group: destinations
properties:
name: controller
url: ~{url}
forwardAuthToken: true
- name: core_node_api
group: destinations
properties:
name: core-node-backend
url: ~{url}
forwardAuthToken: true
- name: core_xsjs_api
group: destinations
properties:
name: core-xsjs-backend
url: ~{url}
forwardAuthToken: true
- name: user_xsjs_api
group: destinations
properties:
name: user-backend
url: ~{url}
forwardAuthToken: true
- name: uaa
group: destinations
properties:
name: uaa
url: ~{url}
forwardAuthToken: true
- name: sapui5-provider
properties:
NODE_TLS_REJECT_UNAUTHORIZED: "0"
httpHeaders: "[{\"Content-Security-Policy\" : \"style-src 'self' 'unsafe-inline' https://sapui5.hana.ondemand.com https://*.api.here.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://sapui5.hana.ondemand.com https://*.api.here.com; connect-src 'self' https://sapui5.hana.ondemand.com https://*.api.here.com\"}]"
- name: shine-site-content
type: com.sap.portal.site-content
path: site-content/
requires:
- name: sap-portal-services-client
- name: shine-uaa
properties:
NODE_TLS_REJECT_UNAUTHORIZED: "0"
resources:
- name: shine-user-container
properties:
user-container-name: '${service-name}'
type: com.sap.xs.hdi-container
parameters:
config:
schema: SHINE_USER
- name: shine-container
properties:
container-name: '${service-name}'
type: com.sap.xs.hdi-container
parameters:
config:
schema: SHINE_CORE
- name: secureStore
type: com.sap.xs.hana-securestore
- name: shine-uaa
type: com.sap.xs.uaa
parameters:
config-path: ./xs-security.json
- name: shine-scheduler
type: com.sap.xs.job-scheduler
- name: shine-auditlog
type: com.sap.xs.auditlog
- name: sap-portal-services-host-com.sap.refapps.shine
parameters:
config:
siteId: com.sap.refapps.shine
type: com.sap.portal.site-host
- name: portal-uaa-com.sap.refapps.shine
parameters:
service-plan: space
type: com.sap.xs.uaa
- name: sap-portal-services-host
type: com.sap.portal.site-host
parameters:
config:
siteId : XSAC_SHINE
- name: sap-portal-services-client
type: com.sap.portal.site-content
parameters:
config:
siteId : XSAC_SHINE
- name: uaa
properties:
url: "https://<hostname>:3##32/uaa-security"
- name: sapui5-provider
type: org.cloudfoundry.managed-service
parameters:
service: sapui5_sb
service-plan: sapui5-1.60
- name: ui5Service
type: configuration
parameters:
provider-id: com.sap.ui5.dist.sapui5-dist-xsa.XSAC_UI5_FESV5:sapui5_fesv5
version: ">=1.60.2"
- name: controller
properties:
url: 'https://<hostname>:3##30'