-
Notifications
You must be signed in to change notification settings - Fork 43
Filter
thiagobustamante edited this page Jul 5, 2017
·
2 revisions
Configure request filters to the request pipeline. If you configure more than one filter, they are all applied following the same order as defined here into this list.
Each Filter Configuration has the following properties:
Property | Type | Description | Required |
---|---|---|---|
middleware | MiddlewareConfig | The Filter configuration. | true |
group | string[] | A list of group names that should be filtered by this filter. If not provided, everything will be filtered. | false |
Example:
{
"filter": [
{
"middleware": {
"name": "myCustomFilter"
},
"group": ["Group1"]
},
{
"middleware": {
"name": "mySecondFilter"
},
"group": ["Group2"]
}
]
}
or
filter:
- middleware:
name: myCustomFilter
group:
- Group1
- middleware:
name: mySecondFilter
group:
- Group2
Tree Gateway provide some filters to perform common tasks like ip filtering.