Open Source API Gateway

ruleMatching

Version

Selects and assigns the matching proxy rule for incoming requests; optionally adds/extends X-Forwarded-* headers.

Syntax

ruleMatching:
maxXForwardedForHeaders: <int>
xForwardedForEnabled: <boolean>
ruleMatching:
  maxXForwardedForHeaders: <int>
  xForwardedForEnabled: <boolean>

Sample

<beans>
<transport coreThreadPoolSize="20">
<ruleMatching />
<dispatching />
<userFeature />
<httpClient />
</transport>
</beans>
<beans>
  <transport coreThreadPoolSize="20">
    <ruleMatching />
    <dispatching />
    <userFeature />
    <httpClient />
  </transport>
</beans>

Attributes

NameRequiredDefaultDescriptionExamples
maxXForwardedForHeadersfalse20Maximum number of existing X-Forwarded-For/-Proto/-Host header occurrences allowed on an incoming request before it is rejected as flooded.-
xForwardedForEnabledfalsetrueWhether X-Forwarded-For, X-Forwarded-Proto, and X-Forwarded-Host headers are added to requests matched to a service proxy.-

Can be used in