summaryrefslogtreecommitdiff
path: root/searx/settings_defaults.py
diff options
context:
space:
mode:
authorAlexandre FLAMENT <alexandre.flament@hesge.ch>2022-10-14 13:27:07 +0000
committerAlexandre Flament <alex@al-f.net>2022-11-05 17:45:52 +0100
commite92755d358df5b34b0181f48f8ba02c7f2939e8f (patch)
tree181d2b38112d9439f836e6d9a286f5355a311ffa /searx/settings_defaults.py
parentfe419e355bf1527c51e3aee98495d08b89510320 (diff)
downloadsearxng-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 'searx/settings_defaults.py')
-rw-r--r--searx/settings_defaults.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py
index a4f6ce607..470290f92 100644
--- a/searx/settings_defaults.py
+++ b/searx/settings_defaults.py
@@ -174,7 +174,7 @@ SCHEMA = {
'default_http_headers': SettingsValue(dict, {}),
},
'redis': {
- 'url': SettingsValue(str, 'unix:///usr/local/searxng-redis/run/redis.sock?db=0'),
+ 'url': SettingsValue((None, False, str), False),
},
'ui': {
'static_path': SettingsDirectoryValue(str, os.path.join(searx_dir, 'static')),