Closed ghost closed 3 years ago
Here is my config
{
"version": 2,
"extra_config": {
"github_com/devopsfaith/krakend-gologging": {
"level": "ERROR",
"prefix": "[PAPER2CODE]",
"syslog": false,
"stdout": true,
"format": "default"
}
},
"timeout": "50000ms",
"cache_ttl": "300s",
"output_encoding": "json",
"name": "paper2code-searx",
"port": 8080,
"endpoints": [
{
"endpoint": "/searx/{pageno}/{time_range}/{language}/{safesearch}/{q}",
"method": "GET",
"extra_config": {},
"output_encoding": "json",
"concurrent_calls": 5,
"querystring_params": [
"q",
"pageno",
"time_range",
"safesearch",
"format"
],
"backend": [
{
"url_pattern": "/?q={q}&category_general=1&pageno={pageno}&time_range={time_range}&language={language}&safesearch={safesearch}&format=json",
"encoding": "json",
"sd": "static",
"extra_config": {},
"method": "GET",
"querystring_params": [ "*" ],
"disable_host_sanitize": false,
"host": [
"http://searx:1979"
],
"group": "web",
"target": ""
},
{
"url_pattern": "/?q={q}&category_images=1&pageno={pageno}&time_range={time_range}&language={language}&safesearch={safesearch}&format=json",
"encoding": "json",
"sd": "static",
"extra_config": {},
"querystring_params": [ "*" ],
"method": "GET",
"host": [
"http://searx:1979"
],
"disable_host_sanitize": false,
"group": "image",
"target": ""
},
{
"url_pattern": "/?q={q}&category_science=1&pageno={pageno}&time_range={time_range}&language={language}&safesearch={safesearch}&format=json",
"encoding": "json",
"sd": "static",
"extra_config": {},
"querystring_params": [ "*" ],
"method": "GET",
"host": [
"http://searx:1979"
],
"disable_host_sanitize": false,
"group": "science",
"target": ""
},
{
"url_pattern": "/?q={q}&category_it=1&pageno={pageno}&time_range={time_range}&language={language}&safesearch={safesearch}&format=json",
"encoding": "json",
"sd": "static",
"extra_config": {},
"method": "GET",
"querystring_params": [ "*" ],
"host": [
"http://searx:1979"
],
"disable_host_sanitize": false,
"group": "it",
"target": ""
},
{
"url_pattern": "/?q={q}&category_news=1&pageno={pageno}&time_range={time_range}&language={language}&safesearch={safesearch}&format=json",
"encoding": "json",
"sd": "static",
"extra_config": {},
"method": "GET",
"querystring_params": [ "*" ],
"host": [
"http://searx:1979"
],
"disable_host_sanitize": false,
"group": "news",
"target": ""
},
{
"url_pattern": "/?q={q}&category_social+media=1&pageno={pageno}&time_range={time_range}&language={language}&safesearch={safesearch}&format=json",
"encoding": "json",
"sd": "static",
"extra_config": {},
"method": "GET",
"querystring_params": [ "*" ],
"host": [
"searx:1979"
],
"disable_host_sanitize": false,
"group": "social",
"target": ""
},
{
"url_pattern": "/?q={q}&category_videos=1&pageno={pageno}&time_range={time_range}&language={language}&safesearch={safesearch}&format=json",
"encoding": "json",
"sd": "static",
"querystring_params": [ "*" ],
"extra_config": {},
"method": "GET",
"host": [
"http://searx:1979"
],
"disable_host_sanitize": false,
"group": "videos",
"target": ""
}
]
}
]
}
you're right. the examples from this repo are 2 years old and they use an older krakend release, not compatible with the current one.
we'll try to update the project in the next weeks
yeah, would be awesome to fix them. I managed to create a version with httpcache with diskv but your examples need a refresh.
Any chance to fix them today ? I need it for project ^^
I tried to use them today but failed too :)
Please fix examples :((
Hi,
Hope you are all well !
I tried to run the httpcache example but it displays the following error:
Is it possible to fix ? how to fix it ?
Thanks in advance for your insights or inputs on that topic.
Cheers, X