ethersphere / swarm-desktop

Electron Desktop app that helps you easily spin up and manage Swarm node
https://desktop.ethswarm.org/
BSD 3-Clause "New" or "Revised" License
26 stars 13 forks source link

feat: bzz.link like cid functionality #39

Open significance opened 2 years ago

significance commented 2 years ago

it is important to resolve cid's and ideally ens subdomains eg. http://bah5acgzagkmequc2zliuhdhyaorin5rozkk57gkbhnpgxa74reug3nbd6bxa.localhost:3000 as standard.

this preserves the browser domain based security assumptions and does not require application developers to specifically deal with hosting websites in a subdirectory, which will mean most websites can be easily rehosted on swarm.

significance commented 2 years ago

can we simply add an entry to the host file for now, run the gateway-proxy as part of the package, and use port 80 by default?

if not then i am certain there's a way.

i know it's cheeky but it would be amazing we could effectively shim a new TLD which uses a local swarm node to resolve any links working in synergy with the browser security model 😀

https://swapchat.bzz