fastlike icon indicating copy to clipboard operation
fastlike copied to clipboard

I'm not sure what `-backend <proxy address>` means

Open simonw opened this issue 3 years ago • 2 comments

Looking at the README just now the examples include -backend <proxy address>

It's not at all obvious to me what this means.

Is this the IP address and port on my own computer that the server will run on, like 0.0.0.0:8000?

Or is it the IP of an existing web server that is running which should be treated as a backend, similar to how Fastly needs a backend? If so should it be formatted as a URL including a http:// or https://?

Or is it the IP of a SOCKS proxy?

Clarifying this with a concrete example in the documentation would be useful!

simonw avatar Jun 05 '21 14:06 simonw

It's the address of an existing http server that will receive requests from your wasm code.

Good call-out though. This is mostly focused on library usage and the binary is an example. But I should for sure improve the docs.

avidal avatar Jun 05 '21 15:06 avidal

Note that the end of the README has a "full" example, including running a python3 server as your backend. But I should probably pull that to the top.

avidal avatar Jun 05 '21 15:06 avidal