Skip to content

Commit aa2886d

Browse files
committed
docs: add area configure
1 parent dde6848 commit aa2886d

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

docs/configure.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ inputs:
2525
- host: anycoder.cn
2626
- host: abc.com
2727
async: true
28+
area: mainland
2829
autoRefresh: true
2930
onlyRefresh: false
3031
cache:
@@ -125,19 +126,20 @@ inputs:
125126

126127
### CDN 配置
127128

128-
| 参数名称 | 是否必选 | 默认 | 描述 |
129-
| ----------- | -------- | ------- | --------------------------------------------------------------------------------- |
130-
| async | 否 | `false` | 是否为异步操作,如果为 true,则不会等待 CDN 创建或更新成功再返回, |
131-
| autoRefresh | 否 | `false` | 是否自动刷新 CDN |
132-
| onlyRefresh | 否 | `false` | 是否只刷新预热 CDN,如果为 `true`,那么只进行刷新预热操作,不会更新 CDN 配置 |
133-
| refreshCdn | 否 | | 刷新 CDN 相关配置,参考 [refreshCdn](#refreshCdn) |
134-
| pushCdn | 否 | | 预热 CDN 相关配置,参考 [pushCdn](#pushCdn) |
135-
| host | 是 | | 需要接入的 CDN 域名。 |
136-
| https | 否 | | Https 加速配置,参考:https://cloud.tencent.com/document/api/228/30987#Https |
137-
| cacheKey | 否 | | 节点缓存键配置,参考:https://cloud.tencent.com/document/api/228/30987#CacheKey |
138-
| cache | 否 | | 缓存过期时间配置,参考: https://cloud.tencent.com/document/api/228/30987#Cache |
139-
| referer | 否 | '' | 防盗链设置,参考: https://cloud.tencent.com/document/api/228/30987#Referer |
140-
| ipFilter | 否 | '' | IP 黑白名单配置,参考: https://cloud.tencent.com/document/api/228/30987#IpFilter |
129+
| 参数名称 | 是否必选 | 默认 | 描述 |
130+
| ----------- | -------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
131+
| async | 否 | `false` | 是否为异步操作,如果为 true,则不会等待 CDN 创建或更新成功再返回, |
132+
| area | 否 | `mainland` | 域名加速区域,mainland:中国境内加速,overseas:中国境外加速,global:全球加速,(使用中国境外加速、全球加速时,需要先开通中国境外加速服务) |
133+
| autoRefresh | 否 | `false` | 是否自动刷新 CDN |
134+
| onlyRefresh | 否 | `false` | 是否只刷新预热 CDN,如果为 `true`,那么只进行刷新预热操作,不会更新 CDN 配置 |
135+
| refreshCdn | 否 | | 刷新 CDN 相关配置,参考 [refreshCdn](#refreshCdn) |
136+
| pushCdn | 否 | | 预热 CDN 相关配置,参考 [pushCdn](#pushCdn) |
137+
| host | 是 | | 需要接入的 CDN 域名。 |
138+
| https | 否 | | Https 加速配置,参考:https://cloud.tencent.com/document/api/228/30987#Https |
139+
| cacheKey | 否 | | 节点缓存键配置,参考:https://cloud.tencent.com/document/api/228/30987#CacheKey |
140+
| cache | 否 | | 缓存过期时间配置,参考: https://cloud.tencent.com/document/api/228/30987#Cache |
141+
| referer | 否 | '' | 防盗链设置,参考: https://cloud.tencent.com/document/api/228/30987#Referer |
142+
| ipFilter | 否 | '' | IP 黑白名单配置,参考: https://cloud.tencent.com/document/api/228/30987#IpFilter |
141143

142144
> 注意:`async` 参数对于配置多个 CDN 域名需求,或者在 CI 流程中时,建议配置成 `true`,不然会导致 serverless cli 执行超时,或者 CI 流程超时。
143145

0 commit comments

Comments
 (0)