mirror of https://github.com/hashicorp/consul
58 lines
1.6 KiB
Plaintext
58 lines
1.6 KiB
Plaintext
{
|
|
"nonce": "00000001",
|
|
"resources": [
|
|
{
|
|
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
"name": "8080",
|
|
"validateClusters": true,
|
|
"virtualHosts": [
|
|
{
|
|
"domains": [
|
|
"*",
|
|
"*:8080"
|
|
],
|
|
"name": "api-gateway-listener-9b9265b",
|
|
"routes": [
|
|
{
|
|
"match": {
|
|
"prefix": "/"
|
|
},
|
|
"requestHeadersToAdd": [
|
|
{
|
|
"header": {
|
|
"key": "X-Header-Add",
|
|
"value": "added"
|
|
}
|
|
},
|
|
{
|
|
"appendAction": "OVERWRITE_IF_EXISTS_OR_ADD",
|
|
"header": {
|
|
"key": "X-Header-Set",
|
|
"value": "set"
|
|
}
|
|
}
|
|
],
|
|
"requestHeadersToRemove": [
|
|
"X-Header-Remove"
|
|
],
|
|
"route": {
|
|
"cluster": "service.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
"idleTimeout": "30s",
|
|
"retryPolicy": {
|
|
"numRetries": 3,
|
|
"retriableStatusCodes": [
|
|
500
|
|
],
|
|
"retryOn": "cancelled,connect-failure,retriable-status-codes"
|
|
},
|
|
"timeout": "30s"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
"versionInfo": "00000001"
|
|
} |