1 Star 0 Fork 0

wnow20 / remix-express-aliyun

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
s.yaml 3.61 KB
一键复制 编辑 原始数据 按行查看 历史
# ------------------------------------
# If you need English case, you can refer to [s_en.yaml] file
# ------------------------------------
# 欢迎您使用阿里云函数计算 FC 组件进行项目开发
# 组件仓库地址:https://github.com/devsapp/fc
# 组件帮助文档:https://www.serverless-devs.com/fc/readme
# Yaml参考文档:https://www.serverless-devs.com/fc/yaml/readme
# 关于:
# - Serverless Devs和FC组件的关系、如何声明/部署多个函数、超过50M的代码包如何部署
# - 关于.fcignore使用方法、工具中.s目录是做什么、函数进行build操作之后如何处理build的产物
# 等问题,可以参考文档:https://www.serverless-devs.com/fc/tips
# 关于如何做CICD等问题,可以参考:https://www.serverless-devs.com/serverless-devs/cicd
# 关于如何进行环境划分等问题,可以参考:https://www.serverless-devs.com/serverless-devs/extend
# 更多函数计算案例,可参考:https://github.com/devsapp/awesome/
# 有问题快来钉钉群问一下吧:33947367
# ------------------------------------
edition: 1.0.0
name: remix-express-aliyun
# access 是当前应用所需要的密钥信息配置:
# 密钥配置可以参考:https://www.serverless-devs.com/serverless-devs/command/config
# 密钥使用顺序可以参考:https://www.serverless-devs.com/serverless-devs/tool#密钥使用顺序与规范
access: "default"
vars: # 全局变量
region: "cn-hongkong"
service:
name: "remix-express-aliyun"
description: 'description'
services:
framework: # 业务名称/模块名称
component: fc # 组件名称,Serverless Devs 工具本身类似于一种游戏机,不具备具体的业务能力,组件类似于游戏卡,用户通过向游戏机中插入不同的游戏卡实现不同的功能,即通过使用不同的组件实现不同的具体业务能力
props:
region: ${vars.region} # 关于变量的使用方法,可以参考:https://www.serverless-devs.com/serverless-devs/yaml#变量赋值
service:
name: ${vars.service.name}
internetAccess: true
vpcConfig:
vpcId: vpc-j6cd0f9ubs4ydcv73g4u5
securityGroupId: sg-j6c3qdr7ahk5so491vp0 # 安全组ID。
vswitchIds:
- vsw-j6cad13q1zhg2sqygd3lt # 请确保该vSwitch对应的网段已配置到数据库实例访问白名单中。
#logConfig: # 配置阿里云SLS日志
# project: aliyun-fc-cn-hongkong-*********
# logstore: fun*********log
# enableRequestMetrics: true
# enableInstanceMetrics: true
# logBeginRule: DefaultRegex
function:
name: "web"
description: 'http function by serverless devs'
runtime: custom-container # 这是设置运行时为custom-container,用于部署开发者自己打的镜像
codeUri: ./
memorySize: 128
caPort: 9000
customContainerConfig:
image: "registry.cn-hongkong.aliyuncs.com/goworks/remix-express-aliyun:0.0.2"
accelerationType: None
environmentVariables:
FOO: "bar"
triggers:
- name: httpTrigger
type: http
# qualifier: LATEST
config:
authType: anonymous
methods:
- GET
- POST
- PUT
- DELETE
- OPTIONS
customDomains:
- domainName: auto
protocol: HTTP
routeConfigs:
- path: '/*'
methods:
- GET
- POST
- PUT
- DELETE
- OPTIONS
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wnow20/remix-express-aliyun.git
git@gitee.com:wnow20/remix-express-aliyun.git
wnow20
remix-express-aliyun
remix-express-aliyun
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891