Set ipfsPublicGateway and ipfsApi when opening webui #1022
Labels
exp/intermediate
Prior experience is likely helpful
kind/enhancement
A net-new feature or improvement to an existing feature
P2
Medium: Good to have, but can wait until someone steps up
Current state
fix: local and public gateway links when cannot preview ipfs-webui#1834 introduced an optional
localStorage
key namedipfsPublicGateway
which overrides the default URL of public gateway used in ipfs-webui (default beinghttps://dweb.link
).ipfs-webui already respects
ipfsApi
key (if present), but Companion does not keep it in sync with own settingsImprovement
Companion should act as the source of truth. API and Gateway configured in Companion should always be explicitly set to the same value in ipfs-webui opened via Companion's "My Node' button etc.
Prior art
Companion sets
ipfsApi
and reloads webui (code) in Brave (which uses custom port). We could make this smarter and execute update ofipfsPublicGateway
andipfsApi
every time URL inlocalStorage
does not match one configured in Companion's Preferences.The text was updated successfully, but these errors were encountered: