mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 13:23:02 +01:00
update krakend
This commit is contained in:
@@ -8,7 +8,10 @@ microservices into single endpoints, doing the heavy-lifting automatically for
|
|||||||
you: aggregate, transform, filter, decode, throttle, auth and more.
|
you: aggregate, transform, filter, decode, throttle, auth and more.
|
||||||
|
|
||||||
|
|
||||||
## krakend.json
|
## krakend config
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>krakend.json</summary>
|
||||||
|
|
||||||
```json
|
```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
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## up and running
|
## up and running
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
|
|
||||||
$ curl http://localhost:8080/httpbin
|
$ curl http://localhost:8080/httpbin
|
||||||
```
|
|
||||||
|
|
||||||
## result.json
|
|
||||||
|
|
||||||
```
|
|
||||||
{
|
{
|
||||||
"headers": {
|
"headers": {
|
||||||
"Accept-Encoding": "gzip",
|
"Accept-Encoding": "gzip",
|
||||||
|
|||||||
Reference in New Issue
Block a user