联网搜索请求失败 #289
-
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
绑定域名,开启ssl |
Beta Was this translation helpful? Give feedback.
-
Bind domain name and enable ssl |
Beta Was this translation helpful? Give feedback.
-
connect refuse,无法连接你的searxng服务 |
Beta Was this translation helpful? Give feedback.
-
connection refused, unable to connect to your searxng service |
Beta Was this translation helpful? Give feedback.
-
我为searxng服务以及coai服务全部绑定了域名并使用ssl,访问网站实测能够正常搜索,但是在coai后台仍然出现搜索错误:invalid character '<" looking for beginning of value,如图: |
Beta Was this translation helpful? Give feedback.
-
通常情况下,searxNG不允许API调用,也就是说输出格式是HTML格式,你需要修改settings.yml来开启。
重启后你可以使用 |
Beta Was this translation helpful? Give feedback.
-
Normally, searxNG does not allow API calls, which means that the output format is HTML format, and you need to modify settings.yml to enable it.
After restarting you can use |
Beta Was this translation helpful? Give feedback.
-
@spongxin 已经说的很好了,可以按照他的步骤来。 如果使用Docker,可以辅助参考下模板: http://github.com/zmh-program/searxng |
Beta Was this translation helpful? Give feedback.
通常情况下,searxNG不允许API调用,也就是说输出格式是HTML格式,你需要修改settings.yml来开启。
如果你使用docker部署,检查环境变量里是否有
SEARXNG_SETTINGS_PATH=/etc/searxng/settings.yml
,如果有,请映射该配置文件到宿主机合适目录并在.yml中添加
- json
。重启后你可以使用
curl -kLX GET --data-urlencode q='searxNG' -d format=json http://你的域名
来检查是否返回JSON 。