https://github.com/devsapp/domain
下发Serverless Devs默认域名
https://github.com/devsapp/domain
domain serverless serverless-devs
Last synced: 21 days ago
JSON representation
下发Serverless Devs默认域名
- Host: GitHub
- URL: https://github.com/devsapp/domain
- Owner: devsapp
- Created: 2021-04-08T13:19:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-26T11:18:49.000Z (about 2 years ago)
- Last Synced: 2023-12-26T12:43:58.146Z (about 2 years ago)
- Topics: domain, serverless, serverless-devs
- Language: TypeScript
- Size: 2.89 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 帮助文档
通过该组件,可以下发Serverless Devs默认域名
## 参数
| 参数 | 必填 | 类型 | 取值 | 描述 | 备注 |
| ---- | ---- | ---- | ---- | ---- | ---- |
| region | true | string | cn-beijing、cn-hangzhou、cn-shanghai、cn-qingdao、cn-zhangjiakou、cn-huhehaote、cn-shenzhen、cn-chengdu、 cn-hongkong、ap-southeast-1、 ap-southeast-2、ap-southeast-3、 ap-southeast-5、ap-northeast-1、eu-central-1、eu-west-1、us-west-1、us-east-1、ap-south-1 | 地域 | |
| type | true | string | fc、oss、jamstack-oss、jamstack-fc | 申请域名下发的云产品 | - |
| user | false | string | - | 阿里云UID | type为fc时必填 |
| service | false | string | - | 函数计算服务名 | type为fc时必填 |
| function | false | string | - | 函数计算函数名 | type为fc时必填 |
| bucket | false | string | - | 对象存储存储桶 | type为oss时必填 |
| customDomain | false | string | - | 函数计算自定义域名 | type为jamstack-fc时必填 |
| project | false | string | - | 函数计算自定义域名 | type为jamstack-fc、jamstack-oss 时必填 |
-------
### type为fc
````
props: # 组件的属性值
type: fc
user: 123456789
region: cn-shenzhen
service: authing
function: test
````
### type为oss
````
props: # 组件的属性值
type: oss
region: cn-shenzhen
bucket: cn-shenzhen-images
````
### type为jamstack-oss
````
props: # 组件的属性值
type: jamstack-oss
region: cn-shenzhen
bucket: cn-shenzhen-images
project: wss-test
customDomain: 123456789.fc.devsapp.net # 选填,填写会多添加一个原站信息
````
### type为jamstack-fc
````
props: # 组件的属性值
type: jamstack-fc
user: 123456789
region: cn-shenzhen
service: authing
function: test
customDomain: 123456789.fc.devsapp.net
project: wss-test
bucket: cn-shenzhen-images # 选填,填写会多添加一个 oss 地址作为原站信息
````
# 其它
组件开发者:项目编译
````
$ npm i
$ npm run build
````