forked from Icycoide/searxng
[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
This commit is contained in:
parent
eb1b5289d5
commit
568b9465e9
3 changed files with 6 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue