利用Github+jsDelivr+autoPicCdn,打造公开、自用、免费、稳定图床

之前介绍过电脑版:https://bmvps.com/github-jsdelivr-picgo/,此次,同样是利用Github和jsDelivr的资源,加上autoPicCdn程序。

支持PHP环境即可,项目已开源:https://github.com/peng4740/autoPicCdn
本地下载:autoPicCdn-20200414

配置选项

https://github.com/settings/tokens,在这个页面生成一个有写权限的token(write:packages前打勾)然后配置up.php中的相关字段。

define("REPO","testforapi");//必须是下面用户名下的公开仓库
define("USER","yumusb");//必须是当前GitHub用户名
define("MAIL","yumusb@foxmail.com");//
define("TOKEN","YourToken");

演示:https://pic.free8.org/

Drop Your Comment