18 Star 80 Fork 6

腾讯云云开发 / cloudbase-extension-cms

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cloudbaserc-fx.json 6.84 KB
一键复制 编辑 原始数据 按行查看 历史
cwuyiqing 提交于 2021-03-19 10:13 . fix: fix webhook log db config miss
{
"version": "2.0",
"envId": "{{env.ENV_ID}}",
"$schema": "https://framework-1258016615.tcloudbaseapp.com/schema/latest.json",
"framework": {
"name": "cloudbase-extension-cms",
"hooks": {},
"plugins": {
"admin": {
"use": "@cloudbase/framework-plugin-website",
"inputs": {
"outputPath": "./packages/admin/dist",
"installCommand": "echo \"Skip Install\"",
"buildCommand": "echo \"Skip Build\"",
"cloudPath": "{{env.deployPath}}"
}
},
"sms-page": {
"use": "@cloudbase/framework-plugin-website",
"inputs": {
"outputPath": "./packages/cms-sms-page/dist",
"installCommand": "echo \"Skip Install\"",
"buildCommand": "echo \"Skip Build\"",
"cloudPath": "/tcb-cms-activities/"
}
},
"init": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "./packages",
"functions": [
{
"name": "tcb-ext-cms-init",
"timeout": 60,
"functionDistPath": "cms-init",
"envVariables": {
"TCB_CMS": true,
"CMS_RESOURCE_PREFIX": "tcb-ext-cms",
"CMS_ADMIN_USER_NAME": "{{env.administratorName}}",
"CMS_ADMIN_PASS_WORD": "{{env.administratorPassword}}",
"CMS_OPERATOR_USER_NAME": "{{env.operatorName}}",
"CMS_OPERATOR_PASS_WORD": "{{env.operatorPassword}}",
"CMS_DEPLOY_PATH": "{{env.deployPath}}",
"ACCESS_DOMAIN": "{{env.accessDomain}}"
},
"installDependency": true,
"handler": "index.main"
}
]
}
},
"service": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "./packages",
"functions": [
{
"name": "tcb-ext-cms-service",
"timeout": 15,
"memory": 256,
"handler": "index.main",
"runtime": "Nodejs10.15",
"functionDistPath": "service",
"envVariables": {
"TCB_CMS": true,
"NODE_ENV": "production"
}
}
],
"servicePaths": {
"tcb-ext-cms-service": "/tcb-ext-cms-service"
}
}
},
"api": {
"use": "@cloudbase/framework-plugin-node",
"inputs": {
"name": "tcb-ext-cms-api",
"entry": "app.js",
"projectPath": "./packages/cms-api",
"functionOptions": {
"timeout": 15,
"envVariables": {
"NODE_ENV": "production"
}
}
}
},
"sms": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "./packages",
"functions": [
{
"name": "tcb-ext-cms-sms",
"timeout": 60,
"envVariables": {
"TCB_CMS": true,
"NODE_ENV": "production"
},
"functionDistPath": "cms-sms",
"installDependency": true,
"handler": "index.main"
}
]
}
},
"openapi": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "./packages",
"functions": [
{
"name": "tcb-ext-cms-openapi",
"timeout": 60,
"memorySize": 1024,
"envVariables": {
"TCB_CMS": true,
"NODE_ENV": "production",
"CMS_RESOURCE_PREFIX": "tcb-ext-cms"
},
"functionDistPath": "cms-openapi",
"installDependency": true,
"handler": "index.main"
}
]
}
},
"db": {
"use": "@cloudbase/framework-plugin-database",
"inputs": {
"collections": [
{
"collectionName": "tcb-ext-cms-projects",
"description": "CMS 系统项目数据(请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "tcb-ext-cms-schemas",
"description": "CMS 系统内容模型数据(请不需要手动修改)",
"aclTag": "ADMINONLY",
"createIndexes": [
{
"name": "查询索引",
"unique": false,
"keys": [
{
"name": "collectionName",
"direction": "1"
},
{
"name": "projectId",
"direction": "1"
}
]
}
]
},
{
"collectionName": "tcb-ext-cms-users",
"description": "CMS 系统系统用户数据,存储 CMS 的用户信息,包括管理员账号信息,角色信息等(请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "tcb-ext-cms-webhooks",
"description": "CMS 系统系统 webhook 集合,存储 CMS 系统的回调接口配置,CMS 系统数据的变更可以通过回调来进行同步 (请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "tcb-ext-cms-webhook-log",
"description": "CMS webhook 执行记录集合(请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "tcb-ext-cms-settings",
"description": "CMS 系统系统配置集合,存储 CMS 系统的设置(请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "tcb-ext-cms-user-roles",
"description": "CMS 系统系统用户角色配置集合,存储 CMS 系统的自定义用户角色信息(请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "tcb-ext-cms-data-migrate",
"description": "CMS 系统数据导入导出的记录(请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "tcb-ext-cms-sms-tasks",
"description": "CMS 短信发送任务记录(请不要手动修改)",
"aclTag": "ADMINONLY"
},
{
"collectionName": "tcb-ext-cms-sms-activities",
"description": "CMS 营销活动记录(请不要手动修改)",
"aclTag": "ADMINONLY"
}
]
}
}
}
}
}
TypeScript
1
https://gitee.com/TencentCloudBase/cloudbase-extension-cms.git
git@gitee.com:TencentCloudBase/cloudbase-extension-cms.git
TencentCloudBase
cloudbase-extension-cms
cloudbase-extension-cms
master

搜索帮助