feat: update package.json

This commit is contained in:
lyz05
2024-01-08 12:08:24 +08:00
parent 3d70214721
commit 5b9591af09
5 changed files with 13103 additions and 214 deletions

4
.gitignore vendored
View File

@@ -274,4 +274,6 @@ fabric.properties
.idea/**/azureSettings.xml
# End of https://www.toptal.com/developers/gitignore/api/node,webstorm,visualstudiocode
upload
upload
.s

8793
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -18,6 +18,7 @@
"compression": "^1.7.4",
"cookie": "^0.5.0",
"cookie-parser": "~1.4.4",
"debug": "^4.3.4",
"dotenv": "^16.0.3",
"ejs": "^3.1.8",
"express": "~4.18.2",

4473
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

46
s.yaml Normal file
View File

@@ -0,0 +1,46 @@
edition: 1.0.0
name: fc-danmaku
access: default
vars: # 全局变量
region: us-west-1
certId: 12106443
service:
name: fc-danmaku
logConfig: auto
triggers:
- name: http_t
type: http
config:
authType: anonymous
methods:
- GET
- POST
services:
subweb: # 业务名称/模块名称
component: fc # 组件名称Serverless Devs 工具本身类似于一种游戏机,不具备具体的业务能力,组件类似于游戏卡,用户通过向游戏机中插入不同的游戏卡实现不同的功能,即通过使用不同的组件实现不同的具体业务能力
actions: # 自定义执行逻辑关于actions 的使用可以参考https://www.serverless-devs.com/serverless-devs/yaml#行为描述
pre-deploy: # 在deploy之前运行
- component: fc build --use-docker --dockerfile ./Dockerfile # 要运行的组件格式为【component: 组件名 命令 参数】可以通过s cli registry search --type Component 获取组件列表)
post-deploy:
- run: curl -I -X GET https://fc.home999.cc/
props:
region: ${vars.region} # 关于变量的使`1用方法可以参考https://www.serverless-devs.com/serverless-devs/yaml#变量赋值
service: ${vars.service}
function:
name: danmaku
caPort: 3000
memorySize: 128
timeout: 30
runtime: custom-container
customContainerConfig:
image: registry.us-west-1.aliyuncs.com/lyz05/danmaku:latest
instanceConcurrency: 50 # 单实例多并发
triggers: ${vars.triggers}
customDomains:
- domainName: fc.home999.cc
protocol: HTTP,HTTPS
routeConfigs:
- path: /*
certId: ${vars.certId}