EtherDream / http-server-online

Start a local HTTP server without any tools, just open a web page.
https://hs.etherdream.com
629 stars 41 forks source link

Proposal/Questionning: "Tunnel (expose local server to the Internet)" #1

Open ariary opened 2 years ago

ariary commented 2 years ago

I see that the tunnel feature is on the roadmap, and I am really interested in it!

Maybe I'm wrong, but a simple approach would be to ease (or detail) a local set up of the server and then populate it using ngrok (or any alternative)?

EtherDream commented 2 years ago

Programs like ngrok are not feasible, because JS cannot provide an HTTP server port. The proxy module must be in the web page.

user 1
user 2  <--http--> backend <--ws--> webpage <--file api--> disk
...
user N
EtherDream commented 2 years ago

In fact, this feature is not difficult to implement, just worried about risks, such as network attacks, illegal content, etc. That's the hard part.