Last active
November 2, 2019 03:30
-
-
Save camposdelima/7735e16f1d8a9de96de2212759106d26 to your computer and use it in GitHub Desktop.
krakend example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 2, | |
"extra_config": { | |
"github_com/devopsfaith/krakend-gologging": { | |
"level": "INFO", | |
"prefix": "[KRAKEND]", | |
"syslog": false, | |
"stdout": true, | |
"format": "default" | |
}, | |
"github_com/devopsfaith/krakend-logstash": { | |
"enabled": false | |
} | |
}, | |
"timeout": "300s", | |
"cache_ttl": "300s", | |
"output_encoding": "no-op", | |
"name": "example", | |
"port": 8080, | |
"endpoints": [ | |
{ | |
"endpoint": "/qualinetapi/Signal/GetContractOperator/{contract}/{operator}", | |
"method": "GET", | |
"extra_config": {}, | |
"output_encoding": "no-op", | |
"concurrent_calls": "1", | |
"backend": [ | |
{ | |
"url_pattern": "/Signal/GetContractOperator/{contract}/{operator}", | |
"encoding": "no-op", | |
"sd": "static", | |
"extra_config": { | |
"github.com/devopsfaith/krakend-httpcache": {} | |
}, | |
"method": "GET", | |
"host": [ | |
"http://b3d7f141fe.to.intercept.rest/" | |
], | |
"disable_host_sanitize": false | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment