Skip to content

Commit

Permalink
chore: Add extra init instructions for ipfs start (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjjpa authored and vasco-santos committed Nov 9, 2020
1 parent 900f8ae commit 7435ebd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions doc/production/DELEGATE_NODES.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ Bear in mind that this allows access to any origin. You might want to control th

6. Start the example and retry its flows.

<details>
<summary>Troubleshooting</summary>

<p><b>Error: no IPFS repo found in <code>$INSTALLATION_PATH/ipfs/common</code></b></p>
Bear in mind that in some distributions you might need to run <code>ipfs init</code> before starting the <code>go-ipfs</code> daemon. If you are running the <code>go-ipfs</code> node in a server you might prefer using the <code>server</code> profile and running <code>ipfs init --profile server</code> instead. For more detailed instructions, please refer to the canonical documentation for <a target="_blank" href="https://docs.ipfs.io/how-to/command-line-quick-start/#initialize-the-repository">initializing the repository</a>
</details>

## Setup a remote go-ipfs node as a Delegate Node for js-ipfs

You should follow all the steps mentioned for the setup of a remote go-ipfs for the libp2p example, except for the integration with the example.
Expand Down
2 changes: 1 addition & 1 deletion examples/delegated-routing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This example uses a publicly known delegated routing node. This aims to ease exp
2. Run the IPFS daemon: `ipfs daemon`
3. In another window output the addresses of the node: `ipfs id`. Make note of the websocket address, it will contain `/ws/` in the address.
- If there is no websocket address, you will need to add it in the ipfs config file (`~/.ipfs/config`)
- Add to Swarm Addresses something like: `"/ip4/127.0.0.1/tcp/4010/ws"`
- Add to Swarm Addresses something like: `"/ip4/127.0.0.1/tcp/4001/ws"`. Make sure to restart your IPFS node afterwards to ensure the new settings had been applied.
4. In `./src/App.js` replace `BootstrapNode` with your nodes Websocket address from the step above.
5. Start this example:

Expand Down

0 comments on commit 7435ebd

Please sign in to comment.