vhAstro-Theme/src/content/blog/【开源】骤雨重山无限存储图床托管于(Cloudflare Pages).md
2025-02-17 18:34:21 +08:00

58 lines
2.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 【开源】骤雨重山无限存储图床托管于Cloudflare Pages
date: 2024-07-22 18:11:06
categories: Code
tags:
- Cloudflare Pages
- telegraph
- Imgur
- 免费图床
id: "zycs-img-cloud-from-cloudflare-pages"
cover: "https://i0.wp.com/uxiaohan.github.io/v2/2024/07/1721643791.png"
recommend: true
---
:::note
在现代互联网环境中快速稳定的图片访问是提升用户体验的重要因素之一。本文将介绍如何利用Cloudflare Pages部署稳定的无限图床Imgur实现图片上传和访问并进一步通过WordPress的WP.COM全球图片缓存进行加速提高图片加载速度。可用于免费图片托管解决方案Flickr 等替代品。
:::
## 简介
- [Cloudflare Pages](https://pages.cloudflare.com/) 是一个强大的静态网站托管服务,结合了 Cloudflare 的全球 CDN内容分发网络优势。
- [Imgur](https://imgur.com/) 是一个免费优质的图床。
- [WordPress 的全球图片缓存](https://01.wp.com/) 是一个高效的 CDN 服务,专门用于加速 WordPress 托管的图片内容。它利用全球分布的节点,将图片缓存并提供快速访问。
- [Cloudflare CDN内容分发网络](https://www.cloudflare.com/zh-cn/application-services/products/cdn/)是由Cloudflare提供的服务旨在加速和保护和加速全球网络应用程序。
### 页面
![骤雨重山图床](https://i0.wp.com/uxiaohan.github.io/v2/2024/07/1721639712.png)
::btn[点击体验]{link="https://wp-cdn.4ce.cn/"}
### 项目地址
::btn[ZYCS-IMG - Github]{link="https://github.com/uxiaohan/ZYCS-IMG"}
## 如何部署
- 1、准备一个 Cloudflare 账户
- 2、Fork 本仓库,自由修改`App.vue``index.html`文件中的文案
- 3、登录`Cloudflare Dashboard`打开`Workers 和 Pages`创建`Pages`
- 4、`连接到Git`选择`Github``Gitlab`中你刚刚Fork的项目点击开始设置
- 5、只需要修改`框架预设``Vue`即可,点击保存并部署,即可部署成功并投入使用
**图片步骤**
:::picture
![骤雨重山图床](https://i0.wp.com/uxiaohan.github.io/v2/2024/07/1721640641.png)
![骤雨重山图床](https://i0.wp.com/uxiaohan.github.io/v2/2024/07/1721640649.png)
![骤雨重山图床](https://i0.wp.com/uxiaohan.github.io/v2/2024/07/1721640656.png)
:::
### 特点
- 无限图片储存数量,你可以上传不限数量的图片到`Imgur`
- 无需购买服务器,托管于`Cloudflare Pages`每天10万次的请求
- 无需购买域名,可以使用`Cloudflare Pages` 提供的`*.pages.dev`的免费二级域名,同时也支持绑定自定义域名