Files
ApiGatewayTest/krakend-config.json

41 lines
830 B
JSON

{
"$schema": "https://www.krakend.io/schema/v2.12/krakend.json",
"version": 3,
"name": "KrakenD API Gateway",
"timeout": "3s",
"cache_ttl": "300s",
"output_encoding": "json",
"port": 8000,
"endpoints": [
{
"endpoint": "/health",
"method": "GET",
"backend": [
{
"url_pattern": "/health",
"method": "GET",
"host": ["service-1:8001"],
"mapping": {
"status": "user-service-health"
},
"deny": [
"service"
]
},
{
"url_pattern": "/health",
"method": "GET",
"host": ["service-2:8002"],
"mapping": {
"status": "order-service-health"
},
"deny": [
"service"
]
}
]
}
]
}