vanvan/ipfs-proxy-http
Composer 安装命令:
composer require vanvan/ipfs-proxy-http
包简介
ipns.co | InterPlanetary File System HTTP Proxy
README 文档
README
IPNS.co | InterPlanetary File System HTTP Proxy
IPNS.co is a very fast proxy to redirect HTTP Query to several IPFS Public gateway HTTP server.
This implementation can help developers to use only one URL to all IPFS files without any risk of breaking the server bandwidth. You can be sure that the servers capacity is large enough to handle all traffic.
This code has been written without any dependency to run as faster as possible. IPNS.co use DNSSEC, DNS Anycast, low latency DNS and IP resolved to different servers to handle all trafic.
Each IPFS gateway can break if a lot of files is downloaded simultaneous, this can help to avoid this risk.
To run your own instance of ipfsProxyHTTP (updated by Git Pull), you only only require PHP>=5.6 and a Web server.
▶️ Usage
https://ipns.co/<hash>
http://ipns.co/ipfs/<hash>
http://ipns.co/ipns/<hash>
🔗 Example:
https://ipns.co/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme
https://ipns.co/ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme
Or use it for your web file
<img src="https://ipns.co/QmZiSAYkU7gZtqYeZWL21yuwgFtRnJu1JjDzR6Qd2qdDBr/static/img/go-ipfs.png" />
⏩ Alternative URL: getipfs.com, ipns.co
🔧 Installation
It is ready to use if you have installed docker.
docker run -p 80:80 -p 443:443 wandrille/ipfs-proxy-http:1.0
or
git clone https://github.com/VanVan/ipfsProxyHTTP
cd ipfsProxyHTTP
docker-compose up
Otherwise, all you need is a basic web server with at least PHP 5.6.
💡 Features
For everyone hosting this code
- Very fast proxy
- Avoid breaking the server bandwidth limit
- No dependency
- Handle a lot of simultaneous requests
And for IPNS.co and getIPFS.com
- CORS
- Origin Isolation (Subdomain Gateway)
- IPNS and DNSLink
- Load balancing
- DDOS protection
- DNSSEC
- DNS Anycast
- Low latency DNS
✏️ Contributing
You can add your public ipfs gateway by making a PR to add it to gateway.txt
🎓 Copyright and license
Code released under the MIT License.
vanvan/ipfs-proxy-http 适用场景与选型建议
vanvan/ipfs-proxy-http 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 14 次下载、GitHub Stars 达 48, 最近一次更新时间为 2018 年 03 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ipfs」 「ipns」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vanvan/ipfs-proxy-http 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vanvan/ipfs-proxy-http 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vanvan/ipfs-proxy-http 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel package to communicate with IPFS
A minimal implementation of IPFS API
ipfs client library
A PHP wrapper for the IPFS API server
php interface for Go-IPFS HTTP API functions
A minimal implementation of IPFS API
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 48
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-06