-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverless.yaml
88 lines (83 loc) · 2.17 KB
/
serverless.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
Conf:
component: "serverless-global"
inputs:
region: ap-shanghai
bucket: go-serverless-1256773370
wxtoken:
appid:
secret:
secret_id:
secret_key:
Weixin_Bucket:
component: '@serverless/tencent-cos'
inputs:
bucket: ${Conf.bucket}
region: ${Conf.region}
Weixin_GoServerless:
component: "@serverless/tencent-scf"
inputs:
name: Weixin_GoServerless
codeUri: ./Admin
handler: index.main_handler
runtime: Python3.6
region: ap-shanghai
description: 微信公众号后台服务器配置
memorySize: 64
timeout: 100
environment:
variables:
region: ${Conf.region}
bucket: ${Conf.bucket}
wxtoken: ${Conf.wxtoken}
appid: ${Conf.appid}
secret: ${Conf.secret}
secret_id: ${Conf.secret_id}
secret_key: ${Conf.secret_key}
events:
- apigw:
name: Weixin_GoServerless
parameters:
serviceId: service-lu0iwy4t
protocols:
- https
environment: release
endpoints:
- path: /
serviceTimeout: 100
method: ANY
function:
isIntegratedResponse: TRUE
Weixin_GoServerless_GetIndexFile:
component: "@serverless/tencent-scf"
inputs:
name: Weixin_GoServerless_GetIndexFile
codeUri: ./GetIndexFile
handler: index.main_handler
runtime: Python3.6
region: ap-shanghai
description: 微信公众号索引建立功能
memorySize: 512
timeout: 100
environment:
variables:
region: ${Conf.region}
bucket: ${Conf.bucket}
secret_id: ${Conf.secret_id}
secret_key: ${Conf.secret_key}
Weixin_GoServerless_SearchNews:
component: "@serverless/tencent-scf"
inputs:
name: Weixin_GoServerless_SearchNews
codeUri: ./SearchNews
handler: index.main_handler
runtime: Python3.6
region: ap-shanghai
description: 微信公众号图文搜索功能
memorySize: 384
timeout: 100
environment:
variables:
region: ${Conf.region}
bucket: ${Conf.bucket}
secret_id: ${Conf.secret_id}
secret_key: ${Conf.secret_key}