|
@@ -40,6 +40,9 @@ def get_user_settings_path():
|
|
|
# enviroment variable SEARX_SETTINGS_PATH
|
|
|
return check_settings_yml(environ['SEARX_SETTINGS_PATH'])
|
|
|
|
|
|
+ if environ.get('SEARX_DISABLE_ETC_SETTINGS', '').lower() in ('1', 'true'):
|
|
|
+ return None
|
|
|
+
|
|
|
# if not, get it from searx code base or last solution from /etc/searx
|
|
|
return check_settings_yml('/etc/searx/settings.yml')
|
|
|
|