代码拉取完成,页面将自动刷新
edition: 1.0.0
name: hello-world-app
access: "default_serverless_devs_access"
# access: wss-root
vars: # 全局变量
region: "cn-shenzhen"
service:
name: "assembly-line"
description: 'hello world by serverless devs'
logConfig: auto
role: acs:ram::1899690531354629:role/aliyunfcdefaultrole
services:
gateway:
component: fc
props:
region: ${vars.region}
service: ${vars.service}
function:
name: "gateway"
description: 'hello world by serverless devs'
runtime: nodejs16
codeUri: ./gateway
handler: index.handler
memorySize: 128
timeout: 20
instanceConcurrency: 128
environmentVariables:
WEBHOOK_PASSWORD: ${env.password}
REF: main
triggers:
- name: httpTrigger
type: http
config:
authType: anonymous
methods:
- GET
- POST
- OPTIONS
engine:
component: fc
actions:
pre-deploy:
- run: npm install --registry=https://registry.npmmirror.com
path: './engine'
post-deploy:
- component: fc api UpdateFunction --region ${vars.region} --header
'{"x-fc-disable-container-reuse":"True"}' --path
'{"serviceName":"${vars.service.name}","functionName":"engine"}'
props:
region: ${vars.region}
service: ${vars.service}
function:
name: "engine"
description: 'hello world by serverless devs'
runtime: nodejs16
codeUri: ./engine
handler: index.handler
memorySize: 640
timeout: 600
layers:
- acs:fc:${vars.region}:1899690531354629:layers/s-dumi/versions/1
environmentVariables:
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/fc/lang/nodejs16_alinode/bin:/opt/bin:/opt/nodejs/node_modules/.bin:/opt/nodejs/node_modules
TOKEN: ${env.token}
asyncConfiguration:
maxAsyncRetryAttempts: 1
statefulInvocation: true
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。