免费国内加速图床Github+jsDelivr搭建教程—-超简单!

JSDelivr是用于开源项目的免费公共CDN,它可以直接从npm注册表和GitHub存储库中提供Web文件,而无需进行任何配置。

将图片存储在Github上,再用jsDelivr做CDN加速。

就成为了 免费存储(Github)+免费国内CDN(jsDelivr)

随便找个网站环境,VPS 或者 虚拟主机扔上去都可以。文章最后有我搭建好的demo

github项目地址:https://github.com/peng4740/autoPicCdn

开始安装

1 Github新建一个项目,用于存放图片(github建议每个项目小于1G,最高是100G,超过100G就不能往里存东西了)

通过https://github.com/new创建新项目

记得设置为公开!

2 生成一个有读写权限的Token

通过https://github.com/settings/tokens有写权限的Token

repo这一列四个权限全部勾选上

然后滑到底部点击"Generate token"按钮

Token只显示一遍,注意保存好

3 在github原项目地址进去,下载ZIP包,解压到本地(或者直接解压到网站环境)

4 在"up.php"中填写所需变量

5 将"index.html"和"up.php"上传到合适的位置

如果你不想默认访问这个网页,或者你想直接找个现成的网页环境放进去,可以把index.html改名,我的就改成了indexxxx.html。这样不影响我现成的网站,我的DEMO就是放在了一个虚拟主机上。

DEMO

https://just.19980428.xyz/indexxxx.html

图片国内速度很友好

后记

作者在2020.03.27 重写交互方式,且现已支持PicGo中的web-uploader插件(Zqian),配置API地址就写up.php的地址,POST参数填写pic

picgo是个多么好用的图床软件就不用我说了吧,神器!!!!!

THE END

Decentralized prediction market for crypto and global events - http://polymarkets.at/ - speculate on outcomes using blockchain-based markets.

Privacy-oriented crypto wallet with Monero support - https://cake-wallet-web.at/ - manage XMR and other assets with enhanced anonymity.

Real-time DEX market intelligence platform - https://dexscreener.at/ - analyze liquidity, volume, and price movements across chains.

Cross-chain wallet for the Cosmos ecosystem - https://keplrwallet.app/ - access IBC networks and stake tokens securely.

Official interface for managing Monero funds - https://monero-wallet.at/ - send, receive, and store XMR with full privacy control.

Lightweight Monero wallet solution for daily use - https://monero-wallet.net/ - fast access to private transactions without custodians.

Alternative access point for Solana Phantom wallet - https://phantomr.at/ - manage SOL, tokens, and NFTs via browser.

Advanced multi-chain wallet for DeFi users - https://rabby.at/ - preview and simulate transactions before signing.

Browser-based gateway for Rabby wallet features - https://rabbys.at/ - interact safely with Ethereum-compatible dApps.

Secure dashboard for managing Trezor hardware wallets - https://trezorsuite.at/ - control cold storage assets from one interface.

Mobile-first crypto wallet with Web3 access - https://trustapp.at/ - store tokens and connect to decentralized applications.

Web entry point for Phantom Solana wallet - https://web-phantom.at/ - connect to Solana dApps without native extensions.