Browse Source

settings.yml: allow to base_url with the SEARXNG_BASE_URL env variable

Related to https://github.com/searxng/searxng-docker/pull/12
Alexandre Flament 3 years ago
parent
commit
8d83787318
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/settings_defaults.py

+ 1 - 1
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'),