From 8d83787318c25a967720e7d194897e833824767d Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 19 Mar 2022 20:20:13 +0100 Subject: [PATCH] settings.yml: allow to base_url with the SEARXNG_BASE_URL env variable Related to https://github.com/searxng/searxng-docker/pull/12 --- searx/settings_defaults.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'),