forked from cf-pages/Telegraph-Image
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Telegraph-Image | ||
Free Image Hosting solution, Flickr/imgur alternative. Using Cloudflare Pages and Telegraph. | ||
|
||
## Deployment | ||
|
||
### Preparation | ||
你唯一需要提前准备的就是一个Cloudflare账户 | ||
|
||
### Step by Step Instruction | ||
简单3步,即可部署本项目,拥有自己的图床 | ||
|
||
1.下载或是Fork本仓库 | ||
|
||
2.打开Cloudflare Dashboard,进入Pages管理页面,选择创建项目,如果在第一步中选择的是fork本仓库,则选择`连接到 Git 提供程序`,如果第一步中选择的是下载本仓库则选择`直接上传` | ||
![1](https://telegraph-image.pages.dev/file/8d4ef9b7761a25821d9c2.png) | ||
|
||
3. 按照页面提示输入项目名称,选择需要连接的git仓库(第一步选择的是fork)或是上传刚刚下载的仓库文件(第一步选择的是下载本仓库),点击`部署站点`即可完成部署 | ||
|
||
## Features | ||
1.无限图片储存数量,你可以上传不限数量的图片 | ||
2.无需购买服务器,托管于Cloudflare的网络上,当使用量不超过Cloudflare的免费额度时,完全免费 | ||
3.无需购买域名,可以使用Cloudflare Pages提供的`*.pages.dev`的免费二级域名,同时也支持绑定自定义域名 | ||
### 绑定自定义域名 | ||
在pages的自定义域里面,绑定cloudflare中存在的域名,在cloudflare托管的域名,自动会修改dns记录 | ||
![2](https://telegraph-image.pages.dev/file/29546e3a7465a01281ee2.png) | ||
|
||
### Limitations | ||
1.由于图片文件实际存储于Telegraph,Telegraph限制上传的图片大小最大为5MB | ||
2.由于使用Cloudflare的网络,图片的加载速度在某些地区可能得不到保证 | ||
3.Cloudflare Function免费版每日限制100,000个请求(即上传或是加载图片的总次数不能超过100,000次)如超过可能需要选择购买Cloudflare Function的付费套餐 | ||
|
||
###感谢 | ||
Hostloc @feixiang和@乌拉擦提供的思路和代码 | ||
|
||
|
||
|
||
|