1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-09-16 09:16:28 +02:00

update krakend

This commit is contained in:
kev
2019-12-02 18:49:06 +08:00
parent a0b3cca085
commit 32f0c8936b

View File

@@ -8,7 +8,10 @@ microservices into single endpoints, doing the heavy-lifting automatically for
you: aggregate, transform, filter, decode, throttle, auth and more.
## krakend.json
## krakend config
<details>
<summary>krakend.json</summary>
```json
{
@@ -36,17 +39,20 @@ you: aggregate, transform, filter, decode, throttle, auth and more.
]
}
```
</details>
```
$ krakend-config2dot -c krakend.json | dot -Tpng -o krakend.png
```
![](data/krakend.png)
## up and running
```bash
$ docker-compose up -d
$ curl http://localhost:8080/httpbin
```
## result.json
```
{
"headers": {
"Accept-Encoding": "gzip",