-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbaserc.json
52 lines (52 loc) · 1.74 KB
/
cloudbaserc.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
{
"version": "2.0",
"envId": "{{envId}}",
"$schema": "https://framework-1258016615.tcloudbaseapp.com/schema/latest.json",
"functionRoot": "./functions",
"functions": [
{
"name": "cdn-pre-heater",
"timeout": 30,
"runtime": "Nodejs10.15",
"memorySize": 1024,
"triggers": [
{ "name": "trigger", "type": "timer", "config": "0 */5 8-20 * * * *" }
],
"handler": "index.main"
}
],
"framework": {
"name": "cdn-pre-heater",
"plugins": {
"function": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {}
}
},
"requirement": {
"environment": {
"PRE_HEAT_CONFIG": {
"description": "预热配置,参考配置 lowcode-1gxvnos61f22b18b-1311711383.tcloudbaseapp.com/app-jzaQSTEk,app-jzaQSTE1 多个环境的配置用英文分号隔开",
"required": false,
"default": "lowcode-1gxvnos61f22b18b-1311711383.tcloudbaseapp.com/app-jzaQSTEk,app-jzaQSTE1",
"validation": {
"rule": {
"type": "RegExp",
"pattern": "^[a-zA-Z0-9.-]+.tcloudbaseapp.com/(app-[a-zA-Z0-9-]+(,app-[a-zA-Z0-9-]+)*)(;[a-zA-Z0-9.-]+.tcloudbaseapp.com/(app-[a-zA-Z0-9-]+(,app-[a-zA-Z0-9-]+)*))*$",
"flag": "g"
},
"errorMessage": "预热配置格式不正确,参考配置 lowcode-1gxvnos61f22b18b-1311711383.tcloudbaseapp.com/app-jzaQSTEk,app-jzaQSTE1 "
}
},
"SECRET_ID": {
"description": "子账号 SECRETID,需要有cdn的接口权限",
"required": true
},
"SECRET_KEY": {
"description": "子账号 SECRETKEY,需要有cdn的接口权限",
"required": true
}
}
}
}
}