diff options
author | Alexandre FLAMENT <alexandre.flament@hesge.ch> | 2022-08-27 11:41:14 +0000 |
---|---|---|
committer | Alexandre FLAMENT <alexandre.flament@hesge.ch> | 2022-08-28 17:12:57 +0000 |
commit | 4adc9920e9114fef231fa63ae93346d01cf848bd (patch) | |
tree | 5bdefe220a926deb055deb35af25f133c60f0008 /searx/settings_defaults.py | |
parent | 56000d51622f924bd0f5cba2008dccd548b9041e (diff) | |
download | searxng-4adc9920e9114fef231fa63ae93346d01cf848bd.tar.gz searxng-4adc9920e9114fef231fa63ae93346d01cf848bd.zip |
Remove usage of SEARX environment variables
Diffstat (limited to 'searx/settings_defaults.py')
-rw-r--r-- | searx/settings_defaults.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py index 3185dd7bd..039987569 100644 --- a/searx/settings_defaults.py +++ b/searx/settings_defaults.py @@ -41,16 +41,6 @@ STR_TO_BOOL = { } _UNDEFINED = object() -# compatibility -SEARX_ENVIRON_VARIABLES = { - 'SEARX_DISABLE_ETC_SETTINGS': 'SEARXNG_DISABLE_ETC_SETTINGS', - 'SEARX_SETTINGS_PATH': 'SEARXNG_SETTINGS_PATH', - 'SEARX_DEBUG': 'SEARXNG_DEBUG', - 'SEARX_PORT': 'SEARXNG_PORT', - 'SEARX_BIND_ADDRESS': 'SEARXNG_BIND_ADDRESS', - 'SEARX_SECRET': 'SEARXNG_SECRET', -} - class SettingsValue: """Check and update a setting value""" @@ -227,11 +217,5 @@ SCHEMA = { def settings_set_defaults(settings): - # compatibility with searx variables - for searx, searxng in SEARX_ENVIRON_VARIABLES.items(): - if searx in os.environ and searxng not in os.environ: - os.environ[searxng] = os.environ[searx] - logger.warning('%s uses value from %s', searxng, searx) - apply_schema(settings, SCHEMA, []) return settings |