mirror of
https://github.com/searxng/searxng.git
synced 2025-07-19 03:09:25 +02:00
[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>
This commit is contained in:
parent
abb33bd7dd
commit
34e260f88f
2 changed files with 13 additions and 1 deletions
|
@ -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')),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue