diff options
author | Alexandre Flament <alex@al-f.net> | 2022-03-19 20:20:13 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2022-03-19 20:20:13 +0100 |
commit | 8d83787318c25a967720e7d194897e833824767d (patch) | |
tree | 2d1a5f95835c86deff9afb261d7662fe58d242c1 /searx/settings_defaults.py | |
parent | 27adcc7037b45b2a11ea8a3b3285f203031959b7 (diff) | |
download | searxng-8d83787318c25a967720e7d194897e833824767d.tar.gz searxng-8d83787318c25a967720e7d194897e833824767d.zip |
settings.yml: allow to base_url with the SEARXNG_BASE_URL env variable
Related to https://github.com/searxng/searxng-docker/pull/12
Diffstat (limited to 'searx/settings_defaults.py')
-rw-r--r-- | searx/settings_defaults.py | 2 |
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'), |