forked from rujor/false
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paths.yaml
More file actions
82 lines (79 loc) · 3.05 KB
/
s.yaml
File metadata and controls
82 lines (79 loc) · 3.05 KB
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
# ------------------------------------
# 欢迎您使用阿里云函数计算 FC 组件进行项目开发
# 组件仓库地址/帮助文档:https://github.com/devsapp/fc
# Yaml参考文档:https://github.com/devsapp/fc/blob/jiangyu-docs/docs/zh/yaml.md
# 关于:
# - Serverless Devs和FC组件的关系、如何声明/部署多个函数、超过50M的代码包如何部署
# - 关于.fcignore使用方法、工具中.s目录是做什么、函数进行build操作之后如何处理build的产物
# 等问题,可以参考文档:https://github.com/devsapp/fc/blob/jiangyu-docs/docs/zh/tips.md
# 关于如何做CICD等问题,可以参考:https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/cicd.md
# 有问题快来钉钉群问一下吧:33947367
# ------------------------------------
edition: 1.0.0
name: DeathNote
access: default
vars: # 全局变量
region: cn-hangzhou
service:
name: DeathNote-service
description: 'DeathNote'
logConfig: auto
services:
helloworld: # 业务名称/模块名称
component: fc
actions: # 自定义执行逻辑
pre-deploy: # 在deploy之前运行
- run: s build --custom-args ' --registry https://registry.npm.taobao.org' # 要运行的命令行
path: ./ # 命令行运行的路径
# post-deploy: # 在deploy之后运行
# - run: s versions # 要运行的命令行
# path: ./ # 命令行运行的路径
props: # 组件的属性值
region: ${vars.region}
service: ${vars.service}
function:
name: DeathNote-function
description: 'DeathNote'
runtime: nodejs14
codeUri: ./
handler: index.handler
instanceConcurrency: 15
environmentVariables:
trdaCookie: ${env(trdaCookie)}
chinaUnicomCookie: ${env(chinaUnicomCookie)}
yingsheng_data: ${env(yingsheng_data)}
akrd: ${env(akrd)}
qcsAuthorization: ${env(qcsAuthorization)}
qcsunionId: ${env(qcsunionId)}
xqzck: ${env(xqzck)}
jtbhapp: ${env(jtbhapp)}
nhsy_data: ${env(nhsy_data)}
suboer_wx: ${env(suboer_wx)}
yingshengAccount: ${env(yingshengAccount)}
dtCookie: ${env(dtCookie)}
sfsyUrl: ${env(sfsyUrl)}
txsCookie: ${env(txsCookie)}
lbvip: ${env(lbvip)}
kgyyCookie: ${env(kgyyCookie)}
tyqhCookie: ${env(tyqhCookie)}
ljfsjlbCookie: ${env(ljfsjlbCookie)}
kfxtoken: ${env(kfxtoken)}
naixueCookie: ${env(naixueCookie)}
sgs: ${env(sgs)}
asyncConfiguration:
maxAsyncRetryAttempts: 0
memorySize: 128
timeout: 3000
triggers:
- name: kugou
type: timer
config:
payload: 'kugou'
cronExpression: 'CRON_TZ=Asia/Shanghai 30 1-59/20 0,7-23 * * *'
enable: true
- name: config
type: timer
config:
payload: 'config'
cronExpression: '@every 60m'
enable: true