mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-21 12:07:00 +02:00
update krakend
This commit is contained in:
parent
95a00353f3
commit
2c6016e6bf
@ -5,6 +5,9 @@
|
|||||||
"endpoints": [
|
"endpoints": [
|
||||||
{
|
{
|
||||||
"endpoint": "/httpbin",
|
"endpoint": "/httpbin",
|
||||||
|
"headers_to_pass": [
|
||||||
|
"User-Agent"
|
||||||
|
],
|
||||||
"backend": [
|
"backend": [
|
||||||
{
|
{
|
||||||
"host": [
|
"host": [
|
||||||
@ -19,6 +22,37 @@
|
|||||||
"url_pattern": "/ip"
|
"url_pattern": "/ip"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
krakend:
|
krakend:
|
||||||
image: devopsfaith/krakend
|
image: devopsfaith/krakend:alpine
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user