-
Notifications
You must be signed in to change notification settings - Fork 101
/
cloudbaserc-wx.json
212 lines (212 loc) · 7.13 KB
/
cloudbaserc-wx.json
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
{
"version": "2.0",
"envId": "{{env.ENV_ID}}",
"$schema": "https://framework-1258016615.tcloudbaseapp.com/schema/latest.json",
"framework": {
"name": "cloudbase-extension-cms",
"hooks": {},
"plugins": {
"admin": {
"use": "@cloudbase/framework-plugin-website",
"inputs": {
"outputPath": "./packages/admin/dist",
"installCommand": "echo \"Skip Install\"",
"buildCommand": "echo \"Skip Build\"",
"cloudPath": "{{env.deployPath}}"
}
},
"sms-page": {
"use": "@cloudbase/framework-plugin-website",
"inputs": {
"outputPath": "./packages/cms-sms-page/dist",
"installCommand": "echo \"Skip Install\"",
"buildCommand": "echo \"Skip Build\"",
"cloudPath": "/cms-activities/"
}
},
"init": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "./packages",
"functions": [
{
"name": "wx-ext-cms-init",
"timeout": 60,
"functionDistPath": "cms-init",
"envVariables": {
"WX_MP": true,
"WX_MP_APP_ID": "",
"CMS_DEPLOY_PATH": "/wx-cms/",
"CMS_RESOURCE_PREFIX": "wx-ext-cms",
"CMS_ADMIN_USER_NAME": "{{env.administratorName}}",
"CMS_ADMIN_PASS_WORD": "{{env.administratorPassword}}",
"CMS_OPERATOR_USER_NAME": "{{env.operatorName}}",
"CMS_OPERATOR_PASS_WORD": "{{env.operatorPassword}}",
"ACCESS_DOMAIN": "{{env.accessDomain}}"
},
"installDependency": true,
"handler": "index.main"
}
]
}
},
"service": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "./packages",
"functions": [
{
"name": "wx-ext-cms-service",
"timeout": 15,
"memory": 256,
"handler": "index.main",
"runtime": "Nodejs10.15",
"functionDistPath": "service",
"envVariables": {
"WX_MP": "true",
"NODE_ENV": "production",
"CMS_RESOURCE_PREFIX": "wx-ext-cms"
}
}
],
"servicePaths": {
"wx-ext-cms-service": "/wx-ext-cms-service"
}
}
},
"sms": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "./packages",
"functions": [
{
"name": "wx-ext-cms-sms",
"timeout": 60,
"envVariables": {
"NODE_ENV": "production",
"CMS_RESOURCE_PREFIX": "wx-ext-cms"
},
"functionDistPath": "cms-sms",
"installDependency": true,
"handler": "index.main"
}
]
}
},
"openapi": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "./packages",
"functions": [
{
"name": "wx-ext-cms-openapi",
"timeout": 60,
"memory": 2048,
"envVariables": {
"WX_MP": "true",
"NODE_ENV": "production",
"CMS_RESOURCE_PREFIX": "wx-ext-cms"
},
"functionDistPath": "cms-openapi",
"installDependency": true,
"handler": "index.main"
}
]
}
},
"openapi-fx": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "./packages",
"functions": [
{
"name": "wx-ext-cms-fx-openapi",
"timeout": 60,
"memory": 1024,
"envVariables": {
"NODE_ENV": "production",
"CMS_RESOURCE_PREFIX": "wx-ext-cms"
},
"functionDistPath": "cms-fx-openapi",
"installDependency": true,
"handler": "index.main"
}
]
}
},
"db": {
"use": "@cloudbase/framework-plugin-database",
"inputs": {
"collections": [
{
"collectionName": "wx-ext-cms-projects",
"description": "CMS 系统项目数据(请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "wx-ext-cms-schemas",
"description": "CMS 系统内容模型数据(请不需要手动修改)",
"aclTag": "ADMINONLY",
"createIndexes": [
{
"name": "查询索引",
"unique": false,
"keys": [
{
"name": "collectionName",
"direction": "1"
},
{
"name": "projectId",
"direction": "1"
}
]
}
]
},
{
"collectionName": "wx-ext-cms-users",
"description": "CMS 系统系统用户数据,存储 CMS 的用户信息,包括管理员账号信息,角色信息等(请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "wx-ext-cms-webhooks",
"description": "CMS 系统系统 webhook 集合,存储 CMS 系统的回调接口配置,CMS 系统数据的变更可以通过回调来进行同步 (请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "wx-ext-cms-webhook-log",
"description": "CMS webhook 执行记录集合(请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "wx-ext-cms-settings",
"description": "CMS 系统系统配置集合,存储 CMS 系统的设置(请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "wx-ext-cms-user-roles",
"description": "CMS 系统系统用户角色配置集合,存储 CMS 系统的自定义用户角色信息(请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "wx-ext-cms-data-migrate",
"description": "CMS 系统数据导入导出的记录(请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "wx-ext-cms-sms-tasks",
"description": "CMS 短信发送任务记录(请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "wx-ext-cms-sms-activities",
"description": "CMS 营销活动记录(请不要手动修改)",
"aclTag": "ADMINONLY"
}
]
}
}
}
}
}