2019-12-02 12:28:46 +02:00
|
|
|
{
|
|
|
|
"version": 2,
|
|
|
|
"name": "My httpbin gateway",
|
|
|
|
"port": 8080,
|
|
|
|
"endpoints": [
|
|
|
|
{
|
|
|
|
"endpoint": "/httpbin",
|
2020-12-02 12:37:15 +02:00
|
|
|
"headers_to_pass": [
|
|
|
|
"User-Agent"
|
|
|
|
],
|
2019-12-02 12:28:46 +02:00
|
|
|
"backend": [
|
|
|
|
{
|
|
|
|
"host": [
|
|
|
|
"https://httpbin.org"
|
|
|
|
],
|
|
|
|
"url_pattern": "/headers"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"host": [
|
|
|
|
"https://httpbin.org"
|
|
|
|
],
|
|
|
|
"url_pattern": "/ip"
|
|
|
|
}
|
|
|
|
]
|
2020-12-02 12:37:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"endpoint": "/about",
|
|
|
|
"extra_config": {
|
|
|
|
"github.com/devopsfaith/krakend/proxy": {
|
|
|
|
"static": {
|
|
|
|
"data": {
|
|
|
|
"hello": "world"
|
|
|
|
},
|
|
|
|
"strategy": "always"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"backend": [
|
|
|
|
{
|
|
|
|
"host": [
|
|
|
|
"http://fake-backend"
|
|
|
|
],
|
|
|
|
"url_pattern": "/"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"extra_config": {
|
|
|
|
"github_com/devopsfaith/krakend-metrics": {
|
|
|
|
"collection_time": "60s",
|
|
|
|
"proxy_disabled": false,
|
|
|
|
"router_disabled": false,
|
|
|
|
"backend_disabled": false,
|
|
|
|
"endpoint_disabled": false,
|
|
|
|
"listen_address": "127.0.0.1:8090"
|
2019-12-02 12:28:46 +02:00
|
|
|
}
|
2020-12-02 12:37:15 +02:00
|
|
|
}
|
2019-12-02 12:28:46 +02:00
|
|
|
}
|