Skip to content

Commit 9819887

Browse files
committed
docs: add faq
1 parent 66a4369 commit 9819887

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ TENCENT_SECRET_ID=123
146146
TENCENT_SECRET_KEY=123
147147
```
148148

149+
## FAQ
150+
151+
[参考](./docs/faq.md)
152+
149153
## License
150154

151155
MIT License

docs/faq.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# FAQ
2+
3+
## COS 桶 ACL 策略超限
4+
5+
通常报错如下:
6+
7+
```
8+
6s > websiteDemo > Your policy or acl has reached the limit
9+
//...
10+
```
11+
12+
针对 COS 静态资源托管,通常需要配置所有用户公有读私有写,website 组件因此默认通过配置 `autoSetupAcl``true`,来帮助用户自动配置访问权限为 `公有读私有写`
13+
由于 COS 针对账号的 `ACL` 配置条数有 `1000` 限制,当子账号很多的情况下,通过 `autoSetupAcl` 来配置 ACL 可能超过上限。
14+
此时用户可以配置 `autoSetupAcl``false`,同时配置 `autoSetupPolicy``true`,来解决此问题。如下:
15+
16+
```yaml
17+
app: appDemo
18+
stage: dev
19+
component: website
20+
name: websiteDemo
21+
22+
inputs:
23+
src:
24+
src: ./src
25+
index: index.html
26+
error: index.html
27+
region: ap-guangzhou
28+
bucketName: my-bucket
29+
protocol: https
30+
# 添加以下配置
31+
autoSetupAcl: false
32+
autoSetupPolicy: true
33+
```

0 commit comments

Comments
 (0)