• This repository has been archived on 08/Sep/2024
  • Stars
    star
    306
  • Rank 136,456 (Top 3 %)
  • Language
    HTML
  • License
    MIT License
  • Created over 3 years ago
  • Updated 2 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
3,329
star
2

OpenAI-Checker

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

XrayR-V2Board

XrayR One-Click Script for V2Board
Shell
361
star
4

bob-plugin-deeplx

**Free DeepL Plugin for Bob**
JavaScript
249
star
5

CloudflareWarp

Cloudflare Warp One Click Script
Shell
228
star
6

FreeDuckDuckGo

Use DuckDuckGo for free with GPT-3.5-Turbo.
Go
215
star
7

MTProxy

MTProxy(MTPROTO) v2 One-Click Installation
Shell
162
star
8

ASN-China

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

discord-image

Powerful Discord image hosting, file sharing
Go
142
star
10

Hysteria2

Hysteria 2 One-Click Installation Script
Shell
136
star
11

DouyinParsing

TikTok China(Douyin) No Watermark Video & Background Music Parser
Python
95
star
12

cohere2openai

Convert the Cohere API to OpenAI compatible API.
Go
76
star
13

claude2openai

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

Inject-IPA

Inject dylib into ipa
Shell
62
star
15

openai-translate

Build your own OpenAI translation API
Go
59
star
16

FuckSheepGame

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

bob-plugin-cohere

Cohere (Command R+) AI translation plugin for Bob.
JavaScript
41
star
18

bob-plugin-copilot

Copilot AI translation plugin for Bob
JavaScript
34
star
19

EasyEhco

Ehco Tunnel One Click Script
Shell
31
star
20

XrayR

XrayR Backup
Go
28
star
21

follow-claim

Follow Claim is a simple tool that uses a cron job to claim daily rewards from the Follow app
Go
23
star
22

GmailValidChecker

Gmail validity checker
Python
12
star
23

ClaudeProxy

Proxy for Anthropic Claude implemented in Go
Go
10
star
24

aaPanelEnhanced

aaPanel Enhanced
JavaScript
10
star
25

SimpleNetflix

Netflix检测精简版
Shell
6
star
26

EasyWebDav

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

ImageHosting

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

deepl

DeepL Free API
Python
4
star
29

SubsNetflixCheck

subscription Netflix unlock check tool
Python
4
star
30

AmazonPriceTracker

Amazon Price Tracker
Go
3
star
31

AppStorePrice

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

DouyinLiveStream

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

NeteaseCloudMusic

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

IDCard-Verify

China's second-generation ID card verification and analysis
PHP
2
star
35

bob-plugin-universal

Universal translation plugin for Bob.
JavaScript
2
star
36

USVisaWaitTimes

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

awesome-stars

2
star
38

MidtermExam

MidtermExam
Python
1
star
39

ShortenURL

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

MSOffice-Language-Modify

Modify MSOffice language on macOS
Shell
1
star
41

Sync-Weibo-Twitter

Sync Weibo to Twitter
Python
1
star
42

missuo

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

VolcengineTranslate

Volcengine Translation API written by Flask
Python
1
star
44

missuo.github.io

A repository for writing blogs
HTML
1
star
45

BaiduAPI-OCR

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

Pypi-Mirror

Another pypi mirror site
1
star
47

Arduino-Timer

Bluetooth App to control Arduino Timer
Java
1
star
48

GoogleDDNS

Google DDNS update client for GoogleDomains
Python
1
star
49

DouyinParser

Douyin video parser
Python
1
star
50

ExchangeRate

A free RMB exchange rate API written in Flask
Python
1
star
51

ANSI-UTF8

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

unifi-cloudflare-ddns

Cloudflare DDNS for UniFi OS
Go
1
star