File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,10 @@ TENCENT_SECRET_ID=123
146
146
TENCENT_SECRET_KEY=123
147
147
```
148
148
149
+ ## FAQ
150
+
151
+ [ 参考] ( ./docs/faq.md )
152
+
149
153
## License
150
154
151
155
MIT License
Original file line number Diff line number Diff line change
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
+ ` ` `
You can’t perform that action at this time.
0 commit comments