summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-03-20 09:15:15 +0100
committerGitHub <noreply@github.com>2022-03-20 09:15:15 +0100
commitb25f118d646630816273735aa3485659c184ed82 (patch)
treed6e65793e230e2a795fd48d18fb279eef16af20e
parent3201aa1b3fe855b6332ccb63644a62ce2d6312b6 (diff)
parent8d83787318c25a967720e7d194897e833824767d (diff)
downloadsearxng-b25f118d646630816273735aa3485659c184ed82.tar.gz
searxng-b25f118d646630816273735aa3485659c184ed82.zip
Merge pull request #990 from dalf/searxng_base_url
settings.yml: allow to base_url with the SEARXNG_BASE_URL env variable
-rw-r--r--searx/settings_defaults.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py
index 92160e249..bb0f2eb29 100644
--- a/searx/settings_defaults.py
+++ b/searx/settings_defaults.py
@@ -165,7 +165,7 @@ SCHEMA = {
'bind_address': SettingsValue(str, '127.0.0.1', 'SEARXNG_BIND_ADDRESS'),
'limiter': SettingsValue(bool, False),
'secret_key': SettingsValue(str, environ_name='SEARXNG_SECRET'),
- 'base_url': SettingsValue((False, str), False),
+ 'base_url': SettingsValue((False, str), False, 'SEARXNG_BASE_URL'),
'image_proxy': SettingsValue(bool, False),
'http_protocol_version': SettingsValue(('1.0', '1.1'), '1.0'),
'method': SettingsValue(('POST', 'GET'), 'POST'),