vanvan/ipfs-proxy-http

ipns.co | InterPlanetary File System HTTP Proxy

1.1 2023-06-22 21:54 UTC

This package is not auto-updated.

Last update: 2024-04-12 20:59:34 UTC


README

Website ipns.co Website getipfs.com NAC-depend-none NAC-packagist GitHub version PHP from Packagist NAC-license

IPFS logo

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"  />

68747470733a2f2f69706e732e636f2f516d5a695341596b5537675a747159655a574c3231797577674674526e4a75314a6a447a523651643271644442722f7374617469632f696d672f676f2d697066732e706e67

⏩ 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.