1 Star 0 Fork 0

Serverless Devs Awesome / cdn-alibaba-component

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

前言

通过本组件,您可以简单快速地通过阿里云CDN对域名进行加速配置

使用

部署操作

s project deploy

移除操作

s project remove

刷新操作

s project refresh -p/--path /abc -a/--area domestic

预热操作

s project preload -p/--path /abc -t/--type directory

停用操作

xianbintang ~/workspace/cdn-alibaba master$ s stop                                                                                                                                                          15:19:12 

Start ......
It is detected that your project has the following project/projects < CdnDemoProject > to be execute
Start executing project CdnDemoProject
CDN config stopping
domain prettyzxx.com stopped
stop CDN config succeed
Project CdnDemoProject successfully to execute 
        
End of method: stop

启用操作

xianbintang ~/workspace/cdn-alibaba master$ s start                                                                                                                                                         15:18:54 

Start ......
It is detected that your project has the following project/projects < CdnDemoProject > to be execute
Start executing project CdnDemoProject
CDN config starting
domain prettyzxx.com started
start CDN config succeed
Project CdnDemoProject successfully to execute 
        
End of method: start

查询状态

xianbintang ~/workspace/cdn-alibaba master$ s status                                                                                                                                                          15:16:55 
Start ......
It is detected that your project has the following project/projects < CdnDemoProject > to be execute
Start executing project CdnDemoProject
get CDN domain status...
DomainName: prettyzxx.com
DomainStatus: online
Scope: domestic
SourceInfo: 
  Type: fc_domain
  Content: 31359370-1314839067006888.test.functioncompute.com
  Priority: 20
  Port: 80
  Enabled: online
  Weight: 10
Description: 
CdnType: web
Cname: prettyzxx.com.w.alikunlun.com
get CDN domain status succeed
Project CdnDemoProject successfully to execute 
        
End of method: status

完整YAML示例

详细使用方法

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/serverless-devs-awesome/cdn-alibaba-component.git
git@gitee.com:serverless-devs-awesome/cdn-alibaba-component.git
serverless-devs-awesome
cdn-alibaba-component
cdn-alibaba-component
master

搜索帮助