Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Proxy a GET request to http://example.com/foo:

    Code Block
    #> curl -X GET http://proxy.host/proxy/stream?target=http%3a%2f%2fexample.com/foo
  2. Proxy a Post request with a JSON body to http://example.com/bar:

    Code Block
     #> curl -X POST -H "Content-Type: appliction/json" -d '{"my-data": "baz"}' http://proxy.host/proxy/stream?target=http%3a%2f%2fexample.com/bar

Reference

Environment variables

Name

Value

PROXY_ALLOW_UNKNOWN_TARGETS

Control if the proxy allows requests to URLs not configured in the connection-routing.ym file.

Possible values: true or false

PROXY_GATEWAY_LOG_LEVEL

Control the log verbosity. The default logging level is INFO

Possible values: WARN, INFO, DEBUG

Connection Routing

Please refer to the connection routing documentation.

Links: