ipfs / ipfs/ipfs-webui

Setting IPFS API address from URL parameter

Open
#947 3 comments 2 reactions 0 assignees View on GitHub
exp/intermediate P2
Dominant language
JavaScript
Stars
1.6k
Forks
534
PR merge metrics
No merged PRs in 30d

Description

When linking to the webui from another application, it would be great if we could supply an already known API address via the URL so the user doesn't have to configure it manually.

For example, using the address `http://ip:5001/ipfs/$webuiHash#ipfs-api=/ip4/10.0.0.1/tcp/5001` would automatically call the right functions to set `/ip4/10.0.0.1/tcp/5001` as the API address.

Log from discussion on IRC today.

```
12:04:31 <@victorbjelkholm> Hello webui folks! Wondering if I can set config values for webui via the URL? For example, I want to be able to link to a webui running somewhere else that is not localhost, and I know where the ipfs endpoint is. So would be great with something like `http://ip:5001/ipfs/$webuiHash#ipfs-api=/ip4/10.0.0.1/tcp/5001` that would set the ipfs endpoint automatically on load

12:26:17 <@olizilla> victorbjelkholm: how doo! you can set config values via localStorage right now. To set it via a URL query, we'd need to tweak ipfs-redux-bundle https://github.com/ipfs-shipyard/ipfs-redux-bundle/blob/fcabfa989d33001638d57d8c1e02be29c3841850/src/js-ipfs-api/index.js
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.