• Stars
    star
    294
  • Rank 136,879 (Top 3 %)
  • Language
    HTML
  • License
    MIT License
  • Created over 3 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Build a free image hosting with Telegraph

Telegraph-Image-Hosting

Build a free image hosting with Telegraph

中文 document is no longer maintained

Features

  • Free
  • Unlimited bandwidth (It will consume the traffic of your VPS)
  • No censorship (NSFW image can be uploaded)
  • You can upload any file, not just image files

Disadvantages

  • Single file cannot exceed 5MB
  • Access speed may not be ideal in China Mainland

Current Strategy (Recommended)

Full enable HTTPS

Client -> Cloudflare Server (Optional) -> Your VPS (Example: Oracle Cloud) -> Telegraph Servers (NL) 

Demo Site

missuo.ru

0e8a64f1538a6727edfda

Deployment

Preparation

  • a Domain (Make sure it's not blocked by GFW)
  • an overseas VPS (Make sure you can access Telegraph)
  • Install Nginx

Configure Nginx

I don't talk too much about simple steps such as domain name resolution and SSL certificate application.

location /upload {
            add_header Access-Control-Allow-Origin *;
            add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
            add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
            if ($request_method = 'OPTIONS') {
                return 204;}
            proxy_pass https://telegra.ph/upload;
}
location /file {
            proxy_pass https://telegra.ph/file;
}

client_max_body_size 5m;

Note: Remove all other useless location related configuration and just keep the two above.

With uPic for macOS/iOS

Thanks to my best friend Svend (author of uPic) for guiding the configuration scheme

  1. You can change the API URL and Domain to your own.

7e28f947345cba3709835

  1. Don't forget to click on the Other fields to add the header information.

7516a06df832d1897922a

Deploy the Web Site (Optional)

Please excuse the fact that I can't write a front-end, so the front-end is very minimal. If you have written a nice front-end, please submit a Pull Request and I will appreciate it.

  1. Connect your server by SSH, then enter your web directory.
cd /www/wwwroot/xxx.com
  1. Download the source code on GitHub with Git.
git clone https://github.com/missuo/Telegraph-Image-Hosting.git ./
  1. Move all the files in web directory to web root directory.
mv web/* ./
  1. Modify the line 34 to your domain in api.php

  2. Have fun.

Finally

There is no guarantee that it will work all the time, after all, Telegraph is on the GFW list. Use it and cherish it!

LICENSE

MIT License

More Repositories

1

FreeGPT35

Utilize the unlimited free GPT-3.5-Turbo API service provided by the login-free ChatGPT Web.
JavaScript
2,812
star
2

OpenAI-Checker

Used to check if your IP can access OpenAI services.
Shell
759
star
3

XrayR-V2Board

XrayR One-Click Script for V2Board
Shell
358
star
4

CloudflareWarp

Cloudflare Warp One Click Script
Shell
231
star
5

bob-plugin-deeplx

**Free DeepL Plugin for Bob**
JavaScript
204
star
6

MTProxy

MTProxy(MTPROTO) v2 One-Click Installation
Shell
151
star
7

Hysteria2

Hysteria 2 One-Click Installation Script
Shell
114
star
8

ASN-China

ASN and IP List in China (Daily Update)
Python
99
star
9

DouyinParsing

TikTok China(Douyin) No Watermark Video & Background Music Parser
Python
94
star
10

Inject-IPA

Inject dylib into ipa
Shell
59
star
11

openai-translate

Build your own OpenAI translation API
Go
56
star
12

FuckSheepGame

羊了个羊刷通关助手 支持QuanX和HTTP Catcher
Python
55
star
13

claude2openai

Convert the Claude API to OpenAI compatible API.
Go
52
star
14

cohere2openai

Convert the Cohere API to OpenAI compatible API.
Go
50
star
15

bob-plugin-copilot

Copilot AI translation plugin for Bob
JavaScript
35
star
16

EasyEhco

Ehco Tunnel One Click Script
Shell
32
star
17

XrayR

XrayR Backup
Go
29
star
18

bob-plugin-cohere

Cohere (Command R+) AI translation plugin for Bob.
JavaScript
23
star
19

discord-image

Powerful Discord image hosting, file sharing
Go
20
star
20

GmailValidChecker

Gmail validity checker
Python
13
star
21

ClaudeProxy

Proxy for Anthropic Claude implemented in Go
Go
7
star
22

aaPanelEnhanced

aaPanel Enhanced
JavaScript
7
star
23

SimpleNetflix

Netflix检测精简版
Shell
6
star
24

EasyWebDav

Quick and easy to set up WebDav server on Linux Server
Shell
5
star
25

ImageHosting

阿里图床、京东图床、腾讯图床、网易图床、头条图床收录
HTML
4
star
26

deepl

DeepL Free API
Python
4
star
27

SubsNetflixCheck

subscription Netflix unlock check tool
Python
4
star
28

NeteaseCloudMusic

网易云音乐外链提取和下载
Python
2
star
29

bob-plugin-universal

Universal translation plugin for Bob.
JavaScript
2
star
30

USVisaWaitTimes

A tool for checking US Visa wait times
Go
2
star
31

AppStorePrice

Crawl in-app purchase prices on the App Store
Go
2
star
32

DouyinLiveStream

Convert Douyin live room share link to live stream link
JavaScript
1
star
33

MidtermExam

MidtermExam
Python
1
star
34

Sync-Weibo-Twitter

Sync Weibo to Twitter
Python
1
star
35

MSOffice-Language-Modify

Modify MSOffice language on macOS
Shell
1
star
36

ShortenURL

About Simple bash script to shorten URLs with CPP.LI
Shell
1
star
37

missuo

A repository in GitHub for testing to display a box at main page of Profile.
1
star
38

IDCard-Verify

China's second-generation ID card verification and analysis
PHP
1
star
39

VolcengineTranslate

Volcengine Translation API written by Flask
Python
1
star
40

missuo.github.io

A repository for writing blogs
HTML
1
star
41

BaiduAPI-OCR

通过百度API来实现OCR文字识别
Python
1
star
42

Pypi-Mirror

Another pypi mirror site
1
star
43

Arduino-Timer

Bluetooth App to control Arduino Timer
Java
1
star
44

GoogleDDNS

Google DDNS update client for GoogleDomains
Python
1
star
45

DouyinParser

Douyin video parser
Python
1
star
46

AmazonPriceTracker

Amazon Price Tracker
Go
1
star
47

ANSI-UTF8

ANSI编码文件转换为UTF-8
Python
1
star