summaryrefslogtreecommitdiff
path: root/searx/settings_defaults.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-11-11 20:14:47 +0100
committerAlexandre Flament <alex@al-f.net>2022-12-10 09:26:38 +0100
commit34e260f88f561cf26454fe72a10a3a403faf2ff3 (patch)
tree4a354812b382958ea8df03562b35bb289bee2adc /searx/settings_defaults.py
parentabb33bd7ddf913fd98826584ed8b687889d3b346 (diff)
downloadsearxng-34e260f88f561cf26454fe72a10a3a403faf2ff3.tar.gz
searxng-34e260f88f561cf26454fe72a10a3a403faf2ff3.zip
[fix] follow up of PR-1856
- the environment variable SEARXNG_REDIS_URL overrides the setting value redis.url - ./manage sets SEARXNG_REDIS_URL to unix:///usr/local/searxng-redis/run/redis.sock if: - the socket exists - SEARXNG_REDIS_URL is not already defined Update of PR #1856 Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
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 470290f92..cfa1bb47c 100644
--- a/searx/settings_defaults.py
+++ b/searx/settings_defaults.py
@@ -174,7 +174,7 @@ SCHEMA = {
'default_http_headers': SettingsValue(dict, {}),
},
'redis': {
- 'url': SettingsValue((None, False, str), False),
+ 'url': SettingsValue((None, False, str), False, 'SEARXNG_REDIS_URL'),
},
'ui': {
'static_path': SettingsDirectoryValue(str, os.path.join(searx_dir, 'static')),