Created by: BernhardRode
Handle toProxy option properly and get proxy settings from environment.
There is an option toProxy (true/false) for http-proxy. But it is never used afaiks. This fix checks the option and uses the http/https proxy set in the environment variables.
Usage:
{
"/api": {
"target": "http://upstreamserver.net",
"toProxy": true
}
}
Sorry, for I had no time for unit tests (just needed a local hotfix ;) )... If you like the solution I could into this PR in more detail during the weekend.