增加环境变量配置调整默认节点为香港方便TG用户推送
This commit is contained in:
@@ -11,10 +11,10 @@ inputs:
|
|||||||
src: ./
|
src: ./
|
||||||
handler: index.main_handler #入口
|
handler: index.main_handler #入口
|
||||||
runtime: Nodejs12.16 # 运行环境 默认 Nodejs10.15
|
runtime: Nodejs12.16 # 运行环境 默认 Nodejs10.15
|
||||||
region: ap-guangzhou # 函数所在区域
|
region: ap-hongkong # 函数所在区域
|
||||||
description: This is a function in ${app} application.
|
description: This is a function in ${app} application.
|
||||||
memorySize: 64 # 内存大小,单位MB
|
memorySize: 128 # 内存大小,单位MB
|
||||||
timeout: 900 # 超时时间,单位秒
|
timeout: 6000 # 超时时间,单位秒
|
||||||
events: # 触发器
|
events: # 触发器
|
||||||
- timer: # 定时触发器
|
- timer: # 定时触发器
|
||||||
parameters:
|
parameters:
|
||||||
@@ -22,3 +22,6 @@ inputs:
|
|||||||
cronExpression: "0 0 0 */1 * * *" # 每天零点执行一次
|
cronExpression: "0 0 0 */1 * * *" # 每天零点执行一次
|
||||||
enable: true
|
enable: true
|
||||||
argument: argument # 额外的参数
|
argument: argument # 额外的参数
|
||||||
|
environment: # 环境变量
|
||||||
|
variables: # 环境变量对象
|
||||||
|
AAA: BBB # 不要删除,用来格式化对齐追加的变量的
|
||||||
Reference in New Issue
Block a user