diff options
Diffstat (limited to 'searx/__init__.py')
-rw-r--r-- | searx/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/__init__.py b/searx/__init__.py index b90cf5358..887ef806d 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -85,3 +85,7 @@ 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) |