-
Notifications
You must be signed in to change notification settings - Fork 103
/
mta.yaml
104 lines (102 loc) · 3.12 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
ID: mtx-guestbook
_schema-version: "2.1"
version: 1.0.0
parameters:
appname: mtx-guestbook
subdomain: <subdomain of the provider subaccount>
modules:
- name: mtx-approuter
type: approuter.nodejs
path: router
parameters:
routes:
- route: https://${subdomain}-${appname}.${default-domain}
- route: https://<subdomain of the consumer subaccount>-${appname}.${default-domain}
disk-quota: 256M
memory: 256M
requires:
- name: html5-rt
- name: uaa
- name: saas-registry
properties:
TENANT_HOST_PATTERN: "^(.*)-${appname}.${default-domain}"
- name: html5_deployer
type: com.sap.application.content
path: .
requires:
- name: html5-host
parameters:
content-target: true
build-parameters:
build-result: resources
requires:
- artifacts:
- HTML5Module-content.zip
name: HTML5Module
target-path: resources/
- name: HTML5Module
type: html5
path: HTML5Module
build-parameters:
builder: custom
commands:
- npm run build
supported-platforms: []
resources:
- name: html5-host
type: org.cloudfoundry.managed-service
parameters:
service: html5-apps-repo
service-plan: app-host
service-name: ${appname}-html5-host
- name: html5-rt
parameters:
service: html5-apps-repo
service-plan: app-runtime
service-name: ${appname}-html5-rt
type: org.cloudfoundry.managed-service
- name: uaa
type: org.cloudfoundry.managed-service
parameters:
service: xsuaa
service-plan: application
service-name: ${appname}-uaa
config:
xsappname: ${appname}
tenant-mode: shared
scopes:
- name: $XSAPPNAME.Read
description: Read permission
- name: $XSAPPNAME.Write
description: Write permission
- name: $XSAPPNAME.Callback
description: With this scope set, the callbacks for tenant onboarding, offboarding and getDependencies can be called.
grant-as-authority-to-apps:
- $XSAPPNAME(application,sap-provisioning,tenant-onboarding)
foreign-scope-references:
- uaa.user
role-templates:
- name: Reader
description: Can read
scope-references:
- $XSAPPNAME.Read
- name: Author
description: Can read and write
scope-references:
- $XSAPPNAME.Read
- $XSAPPNAME.Write
- name: saas-registry
type: org.cloudfoundry.managed-service
parameters:
service: saas-registry
service-plan: application
service-name: ${appname}-saas-registry
config:
xsappname: ${appname}
appName: ${appname}
displayName: Guestbook
description: A guestbook app to explain the concepts of Multitenancy
category: Custom Apps
appUrls:
onSubscription: https://${subdomain}-${appname}.${default-domain}/callback/v1.0/tenants/{tenantId}
getDependencies: https://${subdomain}-${appname}.${default-domain}/callback/v1.0/dependencies