{"id":13453310,"url":"https://github.com/missuo/Telegraph-Image-Hosting","last_synced_at":"2025-03-24T01:31:19.555Z","repository":{"id":51361838,"uuid":"341228479","full_name":"missuo/Telegraph-Image-Hosting","owner":"missuo","description":"Build a free image hosting with Telegraph","archived":true,"fork":false,"pushed_at":"2024-09-08T19:12:05.000Z","size":43,"stargazers_count":308,"open_issues_count":0,"forks_count":68,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-28T20:38:01.564Z","etag":null,"topics":["http","https","image-hosting","nginx","php","ssl","static","telegram","telegraph"],"latest_commit_sha":null,"homepage":"https://missuo.ru","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/missuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-22T14:31:33.000Z","updated_at":"2024-10-27T20:47:13.000Z","dependencies_parsed_at":"2024-01-13T18:00:07.008Z","dependency_job_id":"6c686423-3e24-45d1-adcd-fe3dfd297d38","html_url":"https://github.com/missuo/Telegraph-Image-Hosting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missuo%2FTelegraph-Image-Hosting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missuo%2FTelegraph-Image-Hosting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missuo%2FTelegraph-Image-Hosting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missuo%2FTelegraph-Image-Hosting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/missuo","download_url":"https://codeload.github.com/missuo/Telegraph-Image-Hosting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245194207,"owners_count":20575724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","https","image-hosting","nginx","php","ssl","static","telegram","telegraph"],"created_at":"2024-07-31T08:00:37.864Z","updated_at":"2025-03-24T01:31:19.200Z","avatar_url":"https://github.com/missuo.png","language":"HTML","funding_links":[],"categories":["HTML","图床","Bildhosting"],"sub_categories":[],"readme":"\u003c!--\n * @Author: Vincent Young\n * @Date: 2022-10-05 05:19:33\n * @LastEditors: Vincent Young\n * @LastEditTime: 2023-10-14 23:17:50\n * @FilePath: /Telegraph-Image-Hosting/README.md\n * @Telegram: https://t.me/missuo\n * \n * Copyright © 2022 by Vincent, All Rights Reserved. \n--\u003e\n# Telegraph-Image-Hosting\nBuild a free image hosting with [Telegraph](https://telegra.ph)\n\n\u003e [!IMPORTANT]  \n\u003e **Starting from September 6, 2024, Telegram officially discontinued the upload feature of Telegraph, rendering this project no longer functional.**\n\n## Alternatives\n- [https://github.com/missuo/discord-image](https://github.com/missuo/discord-image)\n\n**This project should be able to perfectly replace Telegraph.**\n\n## Features\n- Free\n- Unlimited bandwidth (It will consume the traffic of your VPS)\n- No censorship (NSFW image can be uploaded)\n- You can upload any file, not just image files\n\n## Disadvantages\n- Single file cannot exceed 5MB\n- Access speed may not be ideal in China Mainland\n\n## Current Strategy (Recommended)\n**Full enable HTTPS**\n```\nClient -\u003e Cloudflare Server (Optional) -\u003e Your VPS (Example: Oracle Cloud) -\u003e Telegraph Servers (NL) \n```\n## Demo Site\n[missuo.ru](https://missuo.ru)\n\n![bacd124a30fb599596f13](https://missuo.ru/file/bacd124a30fb599596f13.png)\n\n## Deployment\n### Preparation\n- a Domain (Make sure it's not blocked by GFW)\n- an overseas VPS (Make sure you can access [Telegraph](https://telegra.ph))\n- Install Nginx\n\n### Configure Nginx\n**I don't talk too much about simple steps such as domain name resolution and SSL certificate application.**\n```\nlocation /upload {\n            add_header Access-Control-Allow-Origin *;\n            add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';\n            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';\n            if ($request_method = 'OPTIONS') {\n                return 204;}\n            proxy_pass https://telegra.ph/upload;\n}\nlocation /file {\n            proxy_pass https://telegra.ph/file;\n}\n\nclient_max_body_size 5m;\n```\n**Note: Remove all other useless `location` related configuration and just keep the two above.**\n\n\n## With uPic for macOS/iOS\n**Thanks to my best friend [Svend](https://github.com/gee1k) (author of [uPic](https://github.com/gee1k/uPic)) for guiding the configuration scheme**\n\n1. You can change the `API URL` and `Domain` to your own.\n\n![7e28f947345cba3709835](https://missuo.ru/file/7e28f947345cba3709835.png)\n\n2. Don't forget to click on the `Other fields` to add the header information.\n\n![7516a06df832d1897922a](https://missuo.ru/file/7516a06df832d1897922a.png)\n\n\n1. Connect your server by SSH, then enter your web directory.\n```shell\ncd /www/wwwroot/xxx.com\n```\n2. Download the source code on GitHub with `wget`.\n```shell\nwget https://raw.githubusercontent.com/missuo/Telegraph-Image-Hosting/main/index.html\n```\n3. Modify the API `https://missuo.ru/upload` to your domain.\n\n4. Have fun.\n\n## Finally\nThere is no guarantee that the Telegraph will work all the time, as it is on the GFW list. However, when you can use it, make sure to cherish it!\n\n## Author\n**Telegraph-Image-Hosting** © [Vincent Young](https://github.com/missuo), Released under the [MIT](./LICENSE) License.\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissuo%2FTelegraph-Image-Hosting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmissuo%2FTelegraph-Image-Hosting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissuo%2FTelegraph-Image-Hosting/lists"}