Notes: Tool: iphost / ipmirror / ipserve

Created on 2 Apr 2016  ·  5Comments  ·  Source: ipfs/notes

What is it?

A small tool that operates in a manner analogous to a traditional static http file server. The core motivation is having a static file hosting metaphor for sysadmins who don't want to / need to grok IPFS' model.

It does essentially what “ipfs daemon + ipfs add + ipfs pin” can do, but with a UX analogous to setting up a traditional static HTTP server; this self-contained tool provides a trivial metaphor for simple-web users who want to ensure availability of files.

Advantages

  • Small self-contained binary (includes its own IPFS Node)
  • Self-contained metaphor -- acts like a traditional http server /wo needing to understand IPFS’ model
  • All of the other IPFS niceties (deduplication, cheap LAN replication, free CDN’ing if others on the IPFS network have the files)
Candidate Dev RFP

Most helpful comment

Really worth looking into @agentofuser's ipfs-deploy tool https://github.com/agentofuser/ipfs-deploy, I believe it fits this usecase and works extremely well!

All 5 comments

Could be similar to python -m SimpleHTTPServer, while watch'ing the directory, adding changed files.

> iphost
creating /tmp/ipfs-repo-for-pwd
mounting /path/to/pwd at /ipns/Qmfoobar
iphost listening on http://127.0.0.1:8080
watching /path/to/pwd for changes

And maybe rather call it ipserve? host is a veeery generic term in the context of IPFS.

Yes, agreed 100%. :heart:

Really worth looking into @agentofuser's ipfs-deploy tool https://github.com/agentofuser/ipfs-deploy, I believe it fits this usecase and works extremely well!

Additionally, https://fleek.co/ took it to the next level and made website hosting super easy!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mitar picture mitar  ·  3Comments

kevina picture kevina  ·  5Comments

pgte picture pgte  ·  4Comments

czanella picture czanella  ·  3Comments

jbenet picture jbenet  ·  4Comments