Telegraph-Image: Create your own image bed at no cost using Cloudflare Pages and Telegraph

888u

Last update at :2024-02-16,Edit by888u

Telegraph-Image, a free and open source telegram image bed and image hosting solution, uses Cloudflare Pages and Telegraph, a Telegraph-based image upload tool, limits the uploaded image size to a maximum of 5MB, supports enabling image review and other operations , those who are interested can build it by themselves.

Installation of Telegraph-Image

1. Download or Fork this repository: https://github.com/cf-pages/Telegraph-Image

2. Open Cloudflare Dashboard, enter the Pages management page, choose to create a project, if you choose to fork this repository in the first step, choose to connect to the Git provider, if you choose to download this repository in the first step Then choose to upload directly

3. Enter the project name as prompted on the page, select the git repository to be connected (the first step is to select fork) or upload the warehouse file you just downloaded (the first step is to download this repository), and click Deploy Site Deployment is complete

4. Bind a custom domain name

In the custom domain of pages, bind the domain name that exists in cloudflare, and the domain name hosted by cloudflare will automatically modify the dns record

3. Enable image review

1. Please go to https://moderatecontent.com/ to register and get a free API key for reviewing image content

2. Open the management page of Cloudflare Pages, click Settings, Environment Variables, and Add Environment Variables

3. Add a variable named ModerateContentApiKey, the value is the API key you just obtained in the first step, click Save

Note: Since the changes will take effect during the next deployment, you may also need to enter the deployment page and redeploy the project

After turning on image review, the first image loading will be slow because the review takes time. Subsequent image loading will not be affected due to the cache

4. Limitations of Telegraph-Image

1. Since image files are actually stored in Telegraph, Telegraph limits the uploaded image size to a maximum of 5MB

2. Due to the use of Cloudflare's network, the loading speed of images may not be guaranteed in some areas

3. The free version of Cloudflare Function has a daily limit of 100,000 requests (that is, the total number of uploads or loading images cannot exceed 100,000 times). If the number exceeds 100,000, you may need to purchase a paid package of Cloudflare Function

Demo: https://img123.pages.dev/

Open source: https://github.com/cf-pages/Telegraph-Image Can be discussed: https://hostloc.com/thread-1092595-1-1.html

Recommended plan for bricklayers

Warm reminder: If you have difficulty choosing, just choose the CN2 GIA-E plan in the middle. The quarterly payment is $49.99, and you can switch between up to 12 computer rooms at will. plan Memory CPU harddisk Traffic/month bandwidth engine room price Buy Banwagonhost Discount Code: BWH3HYATVBJW The latest 2022 graphic tutorial for purchasing Banwagonhost VPS
CN2 (cheapest) 1GB 1 core 20GB 1TB 1Gbps DC3 CN2 DC8 ZNET $49.99/year Direct
CN2 2GB 1 core 40GB 2TB 1Gbps $52.99/half year $99.99/year Direct
CN2 GIA-E (Most recommended) 1GB 2 cores 20GB 1TB 2.5Gbps DC6 CN2 GIA-E DC9 CN2 GIA Japan SoftBank JPOS_1 Netherlands EUNL_9 $49.99/quarter $169.99/year Direct
CN2 GIA-E 2GB 3 core 40GB 2TB 2.5Gbps $89.99/quarter $299.99/year Direct
HK 2GB 2 cores 40GB 0.5TB 1Gbps Hong Kong, China CN2 GIA $89.99/month $899.99/year Direct
HK 4GB 4 core 80GB 1TB 1Gbps $155.99/month $1559.99/year Direct
TOKYO 2GB 2 cores 40GB 0.5TB 1.2Gbps Tokyo, Japan CN2 GIA $89.99/month $899.99/year Direct
TOKYO 4GB 4 core 80GB 1TB 1.2Gbps $155.99/month $1559.99/year Direct

Recommended site searches: Yangzhou dual-line server personal domain name registration, Chinese domain name registration query, instant solution server, Tencent cloud server 12 yuan a year, game high defense server, Hong Kong vps host, mobile agent ip, domain name and space, domain name Filing information query,

Telegraph-Image: Create your own image bed at no cost using Cloudflare Pages and Telegraph

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码