Skip to content

Commit

Permalink
🎉auto update by Gmeek action
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwuzhishi committed Oct 21, 2024
1 parent 62de8eb commit c3e3666
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 44 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 万物之时 :link: https://wanwuzhishi.github.io/
### :page_facing_up: [6](https://wanwuzhishi.github.io//tag.html)
### :speech_balloon: 0
### :hibiscus: 12908
### :alarm_clock: 2024-10-20 16:24:24
### :speech_balloon: 2
### :hibiscus: 12690
### :alarm_clock: 2024-10-21 23:36:58
### Powered by :heart: [Gmeek](https://github.com/Meekdai/Gmeek)
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# 项目地址https://github.com/MarSeventh/CloudFlare-ImgBed

<aside>

‼️ **本方案基于 Cloudflare Pages 和 Telegram (文件大小不超过20MB,过大图片会自动压缩)。**

</aside>


# 一,介绍

Expand Down Expand Up @@ -35,8 +35,8 @@

## **5.支持身份认证、防滥用**

- 支持Web和API**上传认证**感谢[[hl128k](https://github.com/hl128k)](https://github.com/[hl128k](https://github.com/hl128k))
- 支持访问域名限制(感谢[hl128k](https://github.com/hl128k)
- 支持Web和API**上传认证**
- 支持访问域名限制
- 支持上传IP统计

## **6.支持页面自定义**
Expand Down Expand Up @@ -67,51 +67,51 @@

## 1.创建Telegram机器人得到`TG_BOT_TOKEN`

1.[[@BotFather](https://t.me/BotFather)](https://t.me/BotFather)发送`/newbot`,按照提示输入bot的备注、用户名等信息。成功创建如图所示的红色部分为`TG_BOT_TOKEN`
1.[@BotFather](https://t.me/BotFather)发送`/newbot`,按照提示输入bot的备注、用户名等信息。成功创建如图所示的红色部分为`TG_BOT_TOKEN`

!https://tuwwzs.pages.dev/file/1729154237023_Screenshot_20241017_155651_edit_574428759597799.jpg
![ ](https://tuwwzs.pages.dev/file/1729154237023_Screenshot_20241017_155651_edit_574428759597799.jpg)

## 创建Telegram频道得到**`TG_CHAT_ID`**

创建一个新的频道(Channel),并按下图所示将机器人加入频道

!https://tuwwzs.pages.dev/file/1729154241321_Screenshot_20241017_160513_edit_574445754749303.jpg
![ ](https://tuwwzs.pages.dev/file/1729154241321_Screenshot_20241017_160513_edit_574445754749303.jpg)

!https://tuwwzs.pages.dev/file/1729154241183_Screenshot_20241017_160520_edit_574457710440653.jpg
![ ](https://tuwwzs.pages.dev/file/1729154241183_Screenshot_20241017_160520_edit_574457710440653.jpg)


### 选择你刚创建的频道,授予机器人管理员权限

!https://tuwwzs.pages.dev/file/1729154244368_Screenshot_20241017_160533_edit_574471031884085.jpg
![](https://tuwwzs.pages.dev/file/1729154244368_Screenshot_20241017_160533_edit_574471031884085.jpg)

## [@VersaToolsBot](https://t.me/VersaToolsBot)**转发**一条第2步新建频道中的消息,获取`TG_CHAT_ID`(频道ID)

## [[@VersaToolsBot](https://t.me/VersaToolsBot)](https://t.me/VersaToolsBot)**转发**一条第2步新建频道中的消息,获取`TG_CHAT_ID`(频道ID)

<aside>
‼️ **频道ID前有个负号不要忘了!!**

</aside>

!https://tuwwzs.pages.dev/file/1729154245823_Screenshot_20241017_161503_edit_574486968755694.jpg

![](https://tuwwzs.pages.dev/file/1729154245823_Screenshot_20241017_161503_edit_574486968755694.jpg)

## 部署于Cloudflare

依托于CF的强大能力,只需简单几步,即可部署本项目,拥有自己的图床。

1. Fork https://github.com/MarSeventh/CloudFlare-ImgBed

!https://tuwwzs.pages.dev/file/1729153327657_Clip_2024-10-17_16-21-51.png
![](https://tuwwzs.pages.dev/file/1729153327657_Clip_2024-10-17_16-21-51.png)

1. 打开 [[Cloudflare Dashboard](https://dash.cloudflare.com/)](https://dash.cloudflare.com/),进入 Pages 管理页面,选择创建项目,选择`连接到 Git 提供程序`
1. 打开 [Cloudflare Dashboard](https://dash.cloudflare.com/),进入 Pages 管理页面,选择创建项目,选择`连接到 Git 提供程序`

!https://alist.sanyue.site/d/imgbed/202407201047300.png
![](https://alist.sanyue.site/d/imgbed/202407201047300.png)

1. 按照页面提示输入项目名称,选择需要连接的 git 仓库,点击`部署站点`
2. 将前面获取的`TG_BOT_TOKEN``TG_CHAT_ID`分别添加到环境变量中,对应**环境变量名为`TG_BOT_TOKEN``TG_CHAT_ID`**
3. **绑定KV数据库**
- 创建一个新的KV数据库


!https://tuwwzs.pages.dev/file/1729153507708_Clip_2024-10-17_16-24-57.png
![](https://tuwwzs.pages.dev/file/1729153507708_Clip_2024-10-17_16-24-57.png)

- 进入项目对应`设置`>`函数`>`KV 命名空间绑定`>`编辑绑定`>`变量名称`,填写`img_url`,KV命名空间选择刚才创建好的KV数据库
4. `重试部署`,此时项目即可正常使用
2 changes: 1 addition & 1 deletion blogBase.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
</script>
<meta name="description" content="# 项目地址https://github.com/MarSeventh/CloudFlare-ImgBed
<aside>
‼️ **本方案基于 Cloudflare Pages 和 Telegram (文件大小不超过20MB,过大图片会自动压缩)。">
<meta property="og:title" content="基于 Cloudflare Pages 和 Telegram的免费图床搭建教程">
<meta property="og:description" content="# 项目地址https://github.com/MarSeventh/CloudFlare-ImgBed
<aside>
‼️ **本方案基于 Cloudflare Pages 和 Telegram (文件大小不超过20MB,过大图片会自动压缩)。">
<meta property="og:type" content="article">
<meta property="og:url" content="https://wanwuzhishi.github.io//post/ji-yu-%20Cloudflare%20Pages%20-he-%20Telegram-de-mian-fei-tu-chuang-da-jian-jiao-cheng.html">
Expand Down Expand Up @@ -80,9 +80,7 @@ <h1 class="postTitle">基于 Cloudflare Pages 和 Telegram的免费图床搭建
</div>
<div id="content">
<div class="markdown-body" id="postBody"><h1>项目地址<a href="https://github.com/MarSeventh/CloudFlare-ImgBed">https://github.com/MarSeventh/CloudFlare-ImgBed</a></h1>

<g-emoji class="g-emoji" alias="bangbang">‼️</g-emoji> **本方案基于 Cloudflare Pages 和 Telegram (文件大小不超过20MB,过大图片会自动压缩)。**

<p><g-emoji class="g-emoji" alias="bangbang">‼️</g-emoji> <strong>本方案基于 Cloudflare Pages 和 Telegram (文件大小不超过20MB,过大图片会自动压缩)。</strong></p>
<h1>一,介绍</h1>
<h2><strong>1.开源</strong></h2>
<ul>
Expand Down Expand Up @@ -112,8 +110,8 @@ <h2><strong>4.多样化复制</strong></h2>
</ul>
<h2><strong>5.支持身份认证、防滥用</strong></h2>
<ul>
<li>支持Web和API<strong>上传认证</strong>感谢[<a href="https://github.com/hl128k">hl128k</a>](<a href="https://github.com/%5Bhl128k%5D(https://github.com/hl128k))%EF%BC%89">https://github.com/[hl128k](https://github.com/hl128k)))</a></li>
<li>支持访问域名限制(感谢<a href="https://github.com/hl128k">hl128k</a></li>
<li>支持Web和API<strong>上传认证</strong></li>
<li>支持访问域名限制</li>
<li>支持上传IP统计</li>
</ul>
<h2><strong>6.支持页面自定义</strong></h2>
Expand All @@ -138,39 +136,37 @@ <h1>二,<strong>部署</strong></h1>
<h2>1.创建Telegram机器人得到<code class="notranslate">TG_BOT_TOKEN</code></h2>
<ol>
<li>
<p>[<a href="https://t.me/BotFather" rel="nofollow">@BotFather</a>](<a href="https://t.me/BotFather)%E5%8F%91%E9%80%81%60/newbot%60%EF%BC%8C%E6%8C%89%E7%85%A7%E6%8F%90%E7%A4%BA%E8%BE%93%E5%85%A5bot%E7%9A%84%E5%A4%87%E6%B3%A8%E3%80%81%E7%94%A8%E6%88%B7%E5%90%8D%E7%AD%89%E4%BF%A1%E6%81%AF%E3%80%82%E6%88%90%E5%8A%9F%E5%88%9B%E5%BB%BA%E5%A6%82%E5%9B%BE%E6%89%80%E7%A4%BA%E7%9A%84%E7%BA%A2%E8%89%B2%E9%83%A8%E5%88%86%E4%B8%BA%60TG_BOT_TOKEN%60%E3%80%82" rel="nofollow">https://t.me/BotFather)发送`/newbot`,按照提示输入bot的备注、用户名等信息。成功创建如图所示的红色部分为`TG_BOT_TOKEN`。</a></p>
<p>!<a href="https://tuwwzs.pages.dev/file/1729154237023_Screenshot_20241017_155651_edit_574428759597799.jpg" rel="nofollow">https://tuwwzs.pages.dev/file/1729154237023_Screenshot_20241017_155651_edit_574428759597799.jpg</a></p>
<p><a href="https://t.me/BotFather" rel="nofollow">@BotFather</a>发送<code class="notranslate">/newbot</code>,按照提示输入bot的备注、用户名等信息。成功创建如图所示的红色部分为<code class="notranslate">TG_BOT_TOKEN</code></p>
<p><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/355eeec8236bc7c28acb7b00b30e1e8e15b9116040cc72eae84f8d9557700441/68747470733a2f2f747577777a732e70616765732e6465762f66696c652f313732393135343233373032335f53637265656e73686f745f32303234313031375f3135353635315f656469745f3537343432383735393539373739392e6a7067"><img src="https://camo.githubusercontent.com/355eeec8236bc7c28acb7b00b30e1e8e15b9116040cc72eae84f8d9557700441/68747470733a2f2f747577777a732e70616765732e6465762f66696c652f313732393135343233373032335f53637265656e73686f745f32303234313031375f3135353635315f656469745f3537343432383735393539373739392e6a7067" alt=" " data-canonical-src="https://tuwwzs.pages.dev/file/1729154237023_Screenshot_20241017_155651_edit_574428759597799.jpg" style="max-width: 100%;"></a></p>
<h2>创建Telegram频道得到**<code class="notranslate">TG_CHAT_ID</code>**</h2>
<p>创建一个新的频道(Channel),并按下图所示将机器人加入频道</p>
<p>!<a href="https://tuwwzs.pages.dev/file/1729154241321_Screenshot_20241017_160513_edit_574445754749303.jpg" rel="nofollow">https://tuwwzs.pages.dev/file/1729154241321_Screenshot_20241017_160513_edit_574445754749303.jpg</a></p>
<p>!<a href="https://tuwwzs.pages.dev/file/1729154241183_Screenshot_20241017_160520_edit_574457710440653.jpg" rel="nofollow">https://tuwwzs.pages.dev/file/1729154241183_Screenshot_20241017_160520_edit_574457710440653.jpg</a></p>
<p><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/b4ea448eb8d8e9e31939a6c1c7f9e1e9676c1c14052bb08cf643d05575b4c74b/68747470733a2f2f747577777a732e70616765732e6465762f66696c652f313732393135343234313332315f53637265656e73686f745f32303234313031375f3136303531335f656469745f3537343434353735343734393330332e6a7067"><img src="https://camo.githubusercontent.com/b4ea448eb8d8e9e31939a6c1c7f9e1e9676c1c14052bb08cf643d05575b4c74b/68747470733a2f2f747577777a732e70616765732e6465762f66696c652f313732393135343234313332315f53637265656e73686f745f32303234313031375f3136303531335f656469745f3537343434353735343734393330332e6a7067" alt=" " data-canonical-src="https://tuwwzs.pages.dev/file/1729154241321_Screenshot_20241017_160513_edit_574445754749303.jpg" style="max-width: 100%;"></a></p>
<p><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/bb946db96b49331c167507893e37b768bb28d250010ce0dbcd070f81668e9876/68747470733a2f2f747577777a732e70616765732e6465762f66696c652f313732393135343234313138335f53637265656e73686f745f32303234313031375f3136303532305f656469745f3537343435373731303434303635332e6a7067"><img src="https://camo.githubusercontent.com/bb946db96b49331c167507893e37b768bb28d250010ce0dbcd070f81668e9876/68747470733a2f2f747577777a732e70616765732e6465762f66696c652f313732393135343234313138335f53637265656e73686f745f32303234313031375f3136303532305f656469745f3537343435373731303434303635332e6a7067" alt=" " data-canonical-src="https://tuwwzs.pages.dev/file/1729154241183_Screenshot_20241017_160520_edit_574457710440653.jpg" style="max-width: 100%;"></a></p>
</li>
</ol>
<h3>选择你刚创建的频道,授予机器人管理员权限</h3>
<p>!<a href="https://tuwwzs.pages.dev/file/1729154244368_Screenshot_20241017_160533_edit_574471031884085.jpg" rel="nofollow">https://tuwwzs.pages.dev/file/1729154244368_Screenshot_20241017_160533_edit_574471031884085.jpg</a></p>
<h2>向[<a href="https://t.me/VersaToolsBot" rel="nofollow">@VersaToolsBot</a>](<a href="https://t.me/VersaToolsBot)**%E8%BD%AC%E5%8F%91**%E4%B8%80%E6%9D%A1%E7%AC%AC2%E6%AD%A5%E6%96%B0%E5%BB%BA%E9%A2%91%E9%81%93%E4%B8%AD%E7%9A%84%E6%B6%88%E6%81%AF%EF%BC%8C%E8%8E%B7%E5%8F%96%60TG_CHAT_ID%60%EF%BC%88%E9%A2%91%E9%81%93ID%EF%BC%89" rel="nofollow">https://t.me/VersaToolsBot)**转发**一条第2步新建频道中的消息,获取`TG_CHAT_ID`(频道ID)</a></h2>

<g-emoji class="g-emoji" alias="bangbang">‼️</g-emoji> **频道ID前有个负号不要忘了!!**

<p>!<a href="https://tuwwzs.pages.dev/file/1729154245823_Screenshot_20241017_161503_edit_574486968755694.jpg" rel="nofollow">https://tuwwzs.pages.dev/file/1729154245823_Screenshot_20241017_161503_edit_574486968755694.jpg</a></p>
<p><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/b67bb9d52eb37ec991fdd7b0b2434a622905e1d5f6a0c1ed8d29d7272a90fbda/68747470733a2f2f747577777a732e70616765732e6465762f66696c652f313732393135343234343336385f53637265656e73686f745f32303234313031375f3136303533335f656469745f3537343437313033313838343038352e6a7067"><img src="https://camo.githubusercontent.com/b67bb9d52eb37ec991fdd7b0b2434a622905e1d5f6a0c1ed8d29d7272a90fbda/68747470733a2f2f747577777a732e70616765732e6465762f66696c652f313732393135343234343336385f53637265656e73686f745f32303234313031375f3136303533335f656469745f3537343437313033313838343038352e6a7067" alt="" data-canonical-src="https://tuwwzs.pages.dev/file/1729154244368_Screenshot_20241017_160533_edit_574471031884085.jpg" style="max-width: 100%;"></a></p>
<h2><a href="https://t.me/VersaToolsBot" rel="nofollow">@VersaToolsBot</a><strong>转发</strong>一条第2步新建频道中的消息,获取<code class="notranslate">TG_CHAT_ID</code>(频道ID)</h2>
<p><g-emoji class="g-emoji" alias="bangbang">‼️</g-emoji> <strong>频道ID前有个负号不要忘了!!</strong></p>
<p><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/8ff1c6e0c1cf8797c95624daa693bab60f989e4afd0d098ad47a71f613969b66/68747470733a2f2f747577777a732e70616765732e6465762f66696c652f313732393135343234353832335f53637265656e73686f745f32303234313031375f3136313530335f656469745f3537343438363936383735353639342e6a7067"><img src="https://camo.githubusercontent.com/8ff1c6e0c1cf8797c95624daa693bab60f989e4afd0d098ad47a71f613969b66/68747470733a2f2f747577777a732e70616765732e6465762f66696c652f313732393135343234353832335f53637265656e73686f745f32303234313031375f3136313530335f656469745f3537343438363936383735353639342e6a7067" alt="" data-canonical-src="https://tuwwzs.pages.dev/file/1729154245823_Screenshot_20241017_161503_edit_574486968755694.jpg" style="max-width: 100%;"></a></p>
<h2>部署于Cloudflare</h2>
<p>依托于CF的强大能力,只需简单几步,即可部署本项目,拥有自己的图床。</p>
<ol>
<li>Fork <a href="https://github.com/MarSeventh/CloudFlare-ImgBed">https://github.com/MarSeventh/CloudFlare-ImgBed</a></li>
</ol>
<p>!<a href="https://tuwwzs.pages.dev/file/1729153327657_Clip_2024-10-17_16-21-51.png" rel="nofollow">https://tuwwzs.pages.dev/file/1729153327657_Clip_2024-10-17_16-21-51.png</a></p>
<p><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/be3c4068b777ab22655d06d62e0fa934caa590523d920a76a7652c1437c881f4/68747470733a2f2f747577777a732e70616765732e6465762f66696c652f313732393135333332373635375f436c69705f323032342d31302d31375f31362d32312d35312e706e67"><img src="https://camo.githubusercontent.com/be3c4068b777ab22655d06d62e0fa934caa590523d920a76a7652c1437c881f4/68747470733a2f2f747577777a732e70616765732e6465762f66696c652f313732393135333332373635375f436c69705f323032342d31302d31375f31362d32312d35312e706e67" alt="" data-canonical-src="https://tuwwzs.pages.dev/file/1729153327657_Clip_2024-10-17_16-21-51.png" style="max-width: 100%;"></a></p>
<ol>
<li>打开 [<a href="https://dash.cloudflare.com/" rel="nofollow">Cloudflare Dashboard</a>](<a href="https://dash.cloudflare.com/)%EF%BC%8C%E8%BF%9B%E5%85%A5" rel="nofollow">https://dash.cloudflare.com/),进入</a> Pages 管理页面,选择创建项目,选择<code class="notranslate">连接到 Git 提供程序</code></li>
<li>打开 <a href="https://dash.cloudflare.com/" rel="nofollow">Cloudflare Dashboard</a>,进入 Pages 管理页面,选择创建项目,选择<code class="notranslate">连接到 Git 提供程序</code></li>
</ol>
<p>!<a href="https://alist.sanyue.site/d/imgbed/202407201047300.png" rel="nofollow">https://alist.sanyue.site/d/imgbed/202407201047300.png</a></p>
<p><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/4e5efbc2271f89ed5f06c954ebd399ff238612d1b63c82e4d610aeaa87d88659/68747470733a2f2f616c6973742e73616e7975652e736974652f642f696d676265642f3230323430373230313034373330302e706e67"><img src="https://camo.githubusercontent.com/4e5efbc2271f89ed5f06c954ebd399ff238612d1b63c82e4d610aeaa87d88659/68747470733a2f2f616c6973742e73616e7975652e736974652f642f696d676265642f3230323430373230313034373330302e706e67" alt="" data-canonical-src="https://alist.sanyue.site/d/imgbed/202407201047300.png" style="max-width: 100%;"></a></p>
<ol>
<li>按照页面提示输入项目名称,选择需要连接的 git 仓库,点击<code class="notranslate">部署站点</code></li>
<li>将前面获取的<code class="notranslate">TG_BOT_TOKEN</code><code class="notranslate">TG_CHAT_ID</code>分别添加到环境变量中,对应<strong>环境变量名为<code class="notranslate">TG_BOT_TOKEN</code><code class="notranslate">TG_CHAT_ID</code></strong></li>
<li><strong>绑定KV数据库</strong>
<ul>
<li>
<p>创建一个新的KV数据库</p>
<p>!<a href="https://tuwwzs.pages.dev/file/1729153507708_Clip_2024-10-17_16-24-57.png" rel="nofollow">https://tuwwzs.pages.dev/file/1729153507708_Clip_2024-10-17_16-24-57.png</a></p>
<p><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/bbc287d6cff221dfcaf58f8f668ff53e52f359e62fab820629de729350739ade/68747470733a2f2f747577777a732e70616765732e6465762f66696c652f313732393135333530373730385f436c69705f323032342d31302d31375f31362d32342d35372e706e67"><img src="https://camo.githubusercontent.com/bbc287d6cff221dfcaf58f8f668ff53e52f359e62fab820629de729350739ade/68747470733a2f2f747577777a732e70616765732e6465762f66696c652f313732393135333530373730385f436c69705f323032342d31302d31375f31362d32342d35372e706e67" alt="" data-canonical-src="https://tuwwzs.pages.dev/file/1729153507708_Clip_2024-10-17_16-24-57.png" style="max-width: 100%;"></a></p>
</li>
<li>
<p>进入项目对应<code class="notranslate">设置</code>&gt;<code class="notranslate">函数</code>&gt;<code class="notranslate">KV 命名空间绑定</code>&gt;<code class="notranslate">编辑绑定</code>&gt;<code class="notranslate">变量名称</code>,填写<code class="notranslate">img_url</code>,KV命名空间选择刚才创建好的KV数据库</p>
Expand Down
Loading

0 comments on commit c3e3666

Please sign in to comment.