@@ -25,6 +25,7 @@ inputs:
25
25
- host : anycoder.cn
26
26
- host : abc.com
27
27
async : true
28
+ area : mainland
28
29
autoRefresh : true
29
30
onlyRefresh : false
30
31
cache :
@@ -125,19 +126,20 @@ inputs:
125
126
126
127
# ## CDN 配置
127
128
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 |
141
143
142
144
> 注意:`async` 参数对于配置多个 CDN 域名需求,或者在 CI 流程中时,建议配置成 `true`,不然会导致 serverless cli 执行超时,或者 CI 流程超时。
143
145
0 commit comments