Skip to content
forked from 0-RTT/telegraph

基于telegraph的图床,图片大于5MB自动压缩

Notifications You must be signed in to change notification settings

xialaup/telegraph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️需要网络能够访问telegraph

worker

支持黏贴上传,压缩上传,无服务器部署!

复制worker.js代码,修改第二行example.com为你的自定义域名即可!

支持配置多接口,修改代码中的interfaceConfigs和getImageURL即可! responseData返回的是接口的json内容

nginx+php

下载源码,将文件上传到网站目录,访问域名即可!

配置自己的反代域名 修改nginx配置

location /file {
            proxy_pass https://telegra.ph/file;
}

修改api/api.php文件第6行中的域名即可!

docker

docker pull baipiaoo/telegraph:latest

docker run -p 8080:80 -d --restart=always baipiaoo/telegraph

复制功能由navigator.clipboard实现,需使用 HTTPS 协议!

nginx 反代配置
    location / {
        proxy_pass http://localhost:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

Star History

Star History Chart

About

基于telegraph的图床,图片大于5MB自动压缩

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.2%
  • HTML 21.8%
  • PHP 20.1%
  • Dockerfile 2.9%