Skip to content

Files

Latest commit

 Cannot retrieve latest commit at this time.

History

History
26 lines (21 loc) · 1.56 KB

running-water.md

File metadata and controls

26 lines (21 loc) · 1.56 KB

Running WATER

As an example for running WATER with http-proxy, we're going to use a plain.wasm binary available at wateringhole. This WASM was generated by following the refraction-networking/watm steps for build the plain example.

We've added an config example at docs/config_examples/water_config.ini (lines between 104 and 110) and this is the config that we need to change for running with custom WASM binaries:

water-addr = localhost:9999
water-wasm-available-at = https://github.com/getlantern/wateringhole/raw/716a062ffa977fb4004d17827d46bc401265e2ac/protocols/plain/v1.0.0/plain.wasm
water-transport = plain
water-mismatch-protocol = PROTOCOL_UNSPECIFIED

Warning

The cfgsvrauthtoken must be set before running http-proxy, you can set whatever value you want (line 11 at the providen config example) cfgsvrauthtoken = # must have a value, if you don't have any in mind, you can use date +%s for generating a timestamp

  1. Build HTTP proxy:
make build
  1. Run http-proxy with the given configuration:
./bin/http-proxy -config $(pwd)/docs/config_examples/water_config.ini

And this is enough for running http-proxy with WATER! You can also try to use different protocols and contribute by creating WATER WASM protocols and sending a pull request to wateringhole