Go-ipfs: Add a "desktop" friendly init profile

Created on 30 Apr 2018  路  2Comments  路  Source: ipfs/go-ipfs

Type:

Enhancement

Description:

From the discussion in https://github.com/ipfs-shipyard/ipfs-companion/issues/312#issuecomment-385334865

It would be useful to have an init profile optimised for a desktop IPFS user. Something like

ipfs init --profile=desktop

The specific use case is to allow a browser to run the daemon on behalf of the user. The user may have limited or no awareness of the daemon or the repositories existence.

Of note, as there is already a server profile, it might be worth considering setting up the defaults so that they match the needs of a desktop user, though I realise that may be a more disruptive change.

kinenhancement

Most helpful comment

Some initial thoughts for a desktop user:

  • probably want dhtclient. Most desktop users are behind NAT, and it's better to default assume NAT's arent traversable
  • connection manager limits probably want to be low (50-150 ish) but with a higher grace period, perhaps several minutes.
  • mdns and NAT port mapping should be enabled
  • relay addresses should be advertised

I'll add more as I think of them.

All 2 comments

Some initial thoughts for a desktop user:

  • probably want dhtclient. Most desktop users are behind NAT, and it's better to default assume NAT's arent traversable
  • connection manager limits probably want to be low (50-150 ish) but with a higher grace period, perhaps several minutes.
  • mdns and NAT port mapping should be enabled
  • relay addresses should be advertised

I'll add more as I think of them.

Having a --profile=desktop option would go some way to reducing the concerns raised in this issue https://github.com/ipfs/go-ipfs/issues/1482#issuecomment-427346155 if it was clearly documented.

In the meantime ipfs-desktop is going to apply the defaults suggested here to repos initialized via the app. https://github.com/ipfs-shipyard/ipfs-desktop/pull/828

Was this page helpful?
0 / 5 - 0 ratings

Related issues

emelleme picture emelleme  路  3Comments

whyrusleeping picture whyrusleeping  路  4Comments

magik6k picture magik6k  路  3Comments

jonchoi picture jonchoi  路  3Comments

zignig picture zignig  路  3Comments