Ipfs-companion: Opt-in for loading latest webui from webui.ipfs.io.ipns.localhost

Created on 4 Apr 2020  路  5Comments  路  Source: ipfs/ipfs-companion

With subdomain gateway on localhost (#853), users who want to use the latest Web UI can add http://webui.ipfs.io.ipns.localhost:8080 to API.HTTPHeaders.Access-Control-Allow-Origin whitelist in go-ipfs config.

Idea: add an opt-in on Preferences screen (could be an experiment)

The toggle would:

  1. append/remove mentioned origin to CORS whitelist in go-ipfs config (if its applied immediately) OR remove Origin header from requests coming from webui.ipfs.io.ipns.localhost:8080 (will disable Origin check at go-ipfs)
  2. swap webuiRootUrl to open webui.ipfs.io.ipns.localhost:8080 instead of 127.0.0.1:5001 (this includes Open WebUI in browser action menu, but also Files screen after successful file import)
kinenhancement help wanted good first issue exnovice P3 statudeferred topidesign-ux effordays arewebui

Most helpful comment

I was about to reply I don't have bandwidth and started writing tips for someone who would like to pick this up and i accidentaly ended up implementing it :man_facepalming: see #893

All 5 comments

@lidel Suggestion of minor tweak to the text? (except without the automatic GitHub link-making, sigh)
_Replaces your node's stable version with the latest at /ipns/webui.ipfs.io (requires working DNS and a compatible back end)_

@lidel are we interested in following up on this one?

Yes, I believe adding a toggle that changes the URL behind menu item is all we need to do here:

That is all.

Companion should not do any hacking around Origin or CORS: WebUI has pretty good instructions for users on how to set up headers now: https://github.com/ipfs-shipyard/ipfs-webui/pull/1496

@lidel Do you have time? ;)

I was about to reply I don't have bandwidth and started writing tips for someone who would like to pick this up and i accidentaly ended up implementing it :man_facepalming: see #893

Was this page helpful?
0 / 5 - 0 ratings