Skip to content

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

Notifications You must be signed in to change notification settings

PekingJam/telegraph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⚠️需要网络能够访问telegraph

特点

图片储存在telegraph

支持上传大于5MB的图片

使用方法

服务器

安装nginx+php

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

使用自己的反代域名

修改api/api.php文件第6行为你的反代域名

private $domains = ['你的反代域名'];

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

docker

更新请删除容器重新拉取镜像

docker pull baipiaoo/telegraph:latest

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

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

  • HTML 62.7%
  • PHP 37.3%