summaryrefslogtreecommitdiff
path: root/searx/settings_defaults.py
diff options
context:
space:
mode:
authorholysoles <holysoles97@gmail.com>2024-06-14 12:52:31 +0000
committerBnyro <bnyro@tutanota.com>2024-06-14 14:58:02 +0200
commit7be468d2134f545531906491425f006e647dcece (patch)
tree64fac6c0680a8897c1ddc18a669a87fb8c971d8f /searx/settings_defaults.py
parent63b7d558b677319819dd48653a89325c4460ab3f (diff)
downloadsearxng-7be468d2134f545531906491425f006e647dcece.tar.gz
searxng-7be468d2134f545531906491425f006e647dcece.zip
[feat] docker: add env vars for common public instance settings
Diffstat (limited to 'searx/settings_defaults.py')
-rw-r--r--searx/settings_defaults.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py
index 93b04257c..6786a78c4 100644
--- a/searx/settings_defaults.py
+++ b/searx/settings_defaults.py
@@ -174,11 +174,11 @@ SCHEMA = {
'server': {
'port': SettingsValue((int, str), 8888, 'SEARXNG_PORT'),
'bind_address': SettingsValue(str, '127.0.0.1', 'SEARXNG_BIND_ADDRESS'),
- 'limiter': SettingsValue(bool, False),
- 'public_instance': SettingsValue(bool, False),
+ 'limiter': SettingsValue(bool, False, 'SEARXNG_LIMITER'),
+ 'public_instance': SettingsValue(bool, False, 'SEARXNG_PUBLIC_INSTANCE'),
'secret_key': SettingsValue(str, environ_name='SEARXNG_SECRET'),
'base_url': SettingsValue((False, str), False, 'SEARXNG_BASE_URL'),
- 'image_proxy': SettingsValue(bool, False),
+ 'image_proxy': SettingsValue(bool, False, 'SEARXNG_IMAGE_PROXY'),
'http_protocol_version': SettingsValue(('1.0', '1.1'), '1.0'),
'method': SettingsValue(('POST', 'GET'), 'POST'),
'default_http_headers': SettingsValue(dict, {}),
@@ -188,7 +188,7 @@ SCHEMA = {
},
'ui': {
'static_path': SettingsDirectoryValue(str, os.path.join(searx_dir, 'static')),
- 'static_use_hash': SettingsValue(bool, False),
+ 'static_use_hash': SettingsValue(bool, False, 'SEARXNG_STATIC_USE_HASH'),
'templates_path': SettingsDirectoryValue(str, os.path.join(searx_dir, 'templates')),
'default_theme': SettingsValue(str, 'simple'),
'default_locale': SettingsValue(str, ''),