-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.json
96 lines (96 loc) · 2.9 KB
/
config.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
{
"serverless-cloud-function-application": {
"application": {
"Chinese": {
"name": "DPlayer后端",
"description": "Dplayer 弹幕后端",
"attention": "在使用本示例代码时需要在函数里修改用户的appid、secret_id、secret_key、bucket名",
"readme": {
"file": "",
"content": ""
},
"license": {
"file": "",
"content": "GPL v3"
},
"author": {
"name": "github.com/qcminecraft"
}
},
"English": {
"name": "Dplayer-Danmaku-back-end",
"description": "",
"attention": "Please change the appid,secret_id,secret_key,bucket name and region before you use it",
"readme": {
"file": "",
// readme file
"content": "README.md"
//content of readme
},
"license": {
"file": "",
// license file
"content": "GPL v3"
//content of license
},
"author": {
"name": "github.com/qcminecraft"
// author
}
},
"input_parameters": {
"event": "",
"context": ""
},
"output_parameters": {
},
"download_address": "https://github.com/qcminecraft/Serverless-DPlayer-Node",
//demo的git下载链接
"tags": [
"Backup",
"Php7",
"COS"
// 标签统一为英文,可编写多个,建议使用runtime、触发器、场景等关键字,用户可以通过该关键字搜索。前台需要展示,请认真填写,不支持中文
],
"version": "1.2"
//版本号,通过版本号标识 demo 升级情况,未修改版本号会导致 demo 不更新至页面
},
"functions": {
"name": "Danmaku",
// 函数名称,只支持英文
"description": "Dplayer 弹幕后端",
"handler": "danmaku.main_handler",
"memorySize": 128,
// 运行配置内存
"timeout": 10,
// 运行超时时间
"runtime": "Php7",
//运行环境,用户可以通过该关键字搜索["Python2.7", "Python3.6", "Nodejs6.10", "Java8", "LuaCDN", "NodejsCDN", "Php5", "Php7", "Nodejs8.9", "Go1"]
"Environment": {
},
// 可选,用于定义环境变量
"Events": {
"Type": "COS",
"Properties": {
"Bucket": "danmaku",
"Events": "cos:ObjectCreated:*",
"Filter": "",
"Enable": "true"
},
// 可选,用于定义触发此函数的事件源
"VpcConfig": {
},
// 可选, 用于配置云函数访问 VPC 私有网络。
"codeObject": {
"codeFile": [
"danmaku.php"
],
"CodeUri": [
// 代码下载地址,和download_address保持一致
"https://github.com/qcminecraft/Serverless-DPlayer-Node"
]
}
}
}
}
}