golemfactory / dapp-runner

GNU Lesser General Public License v3.0
5 stars 6 forks source link

Add support for HTTP proxy #25

Closed kmazurek closed 2 years ago

kmazurek commented 2 years ago

Resolves #13 Resolves #18

This adds support for creating HTTP proxies between local ports on the requestor and remote ports on the providers.

Key changes:

The address of each local proxy is pushed to the runner's data stream, the message has the following format:

{"http": {"local_proxy_address": "http://localhost:8080"}}

The top-level key (in this case http) is the name of the service/cluster.