diff options
author | Alexandre FLAMENT <alexandre.flament@hesge.ch> | 2022-10-14 13:27:07 +0000 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2022-11-05 17:45:52 +0100 |
commit | e92755d358df5b34b0181f48f8ba02c7f2939e8f (patch) | |
tree | 181d2b38112d9439f836e6d9a286f5355a311ffa /docs/admin | |
parent | fe419e355bf1527c51e3aee98495d08b89510320 (diff) | |
download | searxng-e92755d358df5b34b0181f48f8ba02c7f2939e8f.tar.gz searxng-e92755d358df5b34b0181f48f8ba02c7f2939e8f.zip |
Initialize Redis in searx/webapp.py
settings.yml:
* The default URL was unix:///usr/local/searxng-redis/run/redis.sock?db=0
* The default URL is now "false"
The default URL makes the log difficult to deal with:
if the admin didn't install a Redis instance, the logs record a false error.
It worked before because SearXNG initialized the Redis connection when the limiter started.
In this commit, SearXNG initializes Redis in searx/webapp.py
so various components can use Redis without taking care of the initialization step.
Diffstat (limited to 'docs/admin')
-rw-r--r-- | docs/admin/engines/settings.rst | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/docs/admin/engines/settings.rst b/docs/admin/engines/settings.rst index 086b3ccbe..3ac992d3e 100644 --- a/docs/admin/engines/settings.rst +++ b/docs/admin/engines/settings.rst @@ -314,20 +314,21 @@ developer) account needs to be added to the *searxng-redis* group. .. admonition:: Tip for developers - To set up a local redis instance using sockets simply use:: - - $ ./manage redis.build - $ sudo -H ./manage redis.install - $ sudo -H ./manage redis.addgrp "${USER}" - # don't forget to logout & login to get member of group - - The YAML setting for such a redis instance is: + To set up a local redis instance, first set the socket path of the Redis DB + in your YAML setting: .. code:: yaml redis: url: unix:///usr/local/searxng-redis/run/redis.sock?db=0 + Then use the following commands to install the redis instance :: + + $ ./manage redis.build + $ sudo -H ./manage redis.install + $ sudo -H ./manage redis.addgrp "${USER}" + # don't forget to logout & login to get member of group + .. _settings outgoing: |