diff options
author | Alexandre Flament <alex@al-f.net> | 2020-12-21 10:21:10 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-12-27 10:30:20 +0100 |
commit | 568b9465e9480bf408a00982ce0b8ec7462f830c (patch) | |
tree | a9e22d77a7591e5f5713e9516122c13d6aa38036 /searx/__init__.py | |
parent | eb1b5289d5da742473dd412e83abe35406da5fa5 (diff) | |
download | searxng-568b9465e9480bf408a00982ce0b8ec7462f830c.tar.gz searxng-568b9465e9480bf408a00982ce0b8ec7462f830c.zip |
[mod] check secret_key when searx.webapp is imported
Without this commit the module searx checks the secret_key value.
With this commit, make docs, utils/standalone_searx.py,
utils/fetch_firefox_version.py works without SEARX_DEBUG=1
For reference see https://github.com/searx/searx/pull/2386
Diffstat (limited to 'searx/__init__.py')
-rw-r--r-- | searx/__init__.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/searx/__init__.py b/searx/__init__.py index 9bbc7c8c3..08e67f69d 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -60,7 +60,3 @@ if 'SEARX_SECRET' in environ: settings['server']['secret_key'] = environ['SEARX_SECRET'] if 'SEARX_BIND_ADDRESS' in environ: settings['server']['bind_address'] = environ['SEARX_BIND_ADDRESS'] - -if not searx_debug and settings['server']['secret_key'] == 'ultrasecretkey': - logger.error('server.secret_key is not changed. Please use something else instead of ultrasecretkey.') - exit(1) |