1 Star 0 Fork 0

Serverless Devs Awesome / oss-alibaba-component

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
publish.yaml 2.91 KB
一键复制 编辑 原始数据 按行查看 历史
XianB 提交于 2020-10-15 13:12 . update code directory
OSSComponent:
Component: oss
Provider: alibaba
Properties:
Region: 'cn-hangzhou'
Bucket: MybucketName
# CodeUri: 本地路径
CodeUri:
Src: 本地路径
Excludes:
- path1
- path2
Includes:
- path1
- path2
Tags:
- Key: aa
Vaule: bbb
StorageClass: standard
Cors:
- AllowedOrigin:
- http://www.a.com
- http://www.b.com
AllowedMethod:
- POST
- GET
AllowedHeader:
- Authorization
ExposeHeader:
- x-oss-test
- x-oss-test1
MaxAgeSeconds: 100
ResponseVary: true
Referer:
AllowEmptyReferer: true
List:
- http://www.aliyun.com
Acl: public-read-write
Lifecycle:
- ID: aa
Prefix: Prefix
Status: Status
Expiration:
Days: Days
Transition:
Days: Days
CreatedBeforeDate: CreatedBeforeDate
StorageClass: StorageClass
AbortMultipartUpload:
Days: Days
CreatedBeforeDate: CreatedBeforeDate
Tag:
- Key: Key
Value: Value
NoncurrentVersionTransition:
NoncurrentDays: 10
StorageClass: IA
Policy:
- Actions:
- oss:PutObject
Effect: Deny
Principal:
- 1234567890
Resource:
- acs:oss:*:1234567890:*/*
Logging:
Enable: true/false
TargetBucket: TargetBucket
TargetPrefix: TargetPrefix
EncryptionRule:
SSEAlgorithm: AES256
KMSMasterKeyID: KMSMasterKeyID
Versioning: enable
Domains:
- Domain: anycodes.cn
AutoCname: true
PrivateKey: './certificates/privateKey.pem'
Certificate: './certificates/certificate.pem'
Website:
Pages:
Index: index.html
Error: error.html
SubDir:
Index: index.html
ErrorRuleType: 1
RoutingRules:
RuleNumber: 1
Condition:
KeyPrefixEquals: abc/
HttpErrorCodeReturnedEquals: 404
IncludeHeader:
Key: host
Equals: test.oss-cn-beijing-internal.aliyuncs.com
KeySuffixEquals: abc/
Redirect:
RedirectType: Mirror
PassQueryString: true
Mirror:
URL: http://www.test.com/
PassQueryString: true
FollowRedirect: true
CheckMd5: true
Headers: a
PassAll: true
Pass:
- myheader-key1
- myheader-key2
Remove:
- myheader-key3
- myheader-key4
Set:
Key: aa
Value: aa
Protocol: http
HostName: www.test.com
ReplaceKeyPrefixWith:
EnableReplacePrefix: def/
ReplaceKeyWith: prefix/${key}.suffix
HttpRedirectCode: 301
1
https://gitee.com/serverless-devs-awesome/oss-alibaba-component.git
git@gitee.com:serverless-devs-awesome/oss-alibaba-component.git
serverless-devs-awesome
oss-alibaba-component
oss-alibaba-component
master

搜索帮助