Skip to content

Conversation

@ShimmerGlass
Copy link
Collaborator

This adds an option to enable X-Forwarded-For in the downstream backend.
This allows for the destination app to know where the request originated
from.

Example config :

{
  "service": {
    "name": "socat",
    "port": 8181,
    "connect": {
      "sidecar_service": {
        "proxy": {
          "config": {
            "enable_forwardfor": true
          }
        }
      }
    }
  }
}

In Addition this fixes how the proxy options are read.

This adds an option to enable X-Forwarded-For in the downstream backend.
This allows for the destination app to know where the request originated
from.

Example config :
```
{
  "service": {
    "name": "socat",
    "port": 8181,
    "connect": {
      "sidecar_service": {
        "proxy": {
          "config": {
            "enable_forwardfor": true
          }
        }
      }
    }
  }
}
```

In Addition this fixes how the proxy options are read.
@aiharos aiharos merged commit b852672 into master Apr 23, 2020
@ShimmerGlass ShimmerGlass deleted the forwardedfor branch April 24, 2020 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants