diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2020-03-25 17:28:32 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-03-25 17:28:32 +0100 |
commit | 4d6482823764c840415a6023d945b5699a53ba2a (patch) | |
tree | 650add486271c2c66e0b7d1e20638fb616f76b04 | |
parent | ace7d30aed0bdff07e97cdb3900c38633877cdcd (diff) | |
download | searxng-4d6482823764c840415a6023d945b5699a53ba2a.tar.gz searxng-4d6482823764c840415a6023d945b5699a53ba2a.zip |
webapp.py: expose the brand variable in the /config URL.
E.g. helpful for searx-stats2
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rwxr-xr-x | searx/webapp.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 3af5c57b4..c910230ab 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -996,6 +996,10 @@ def config(): 'safe_search': settings['search']['safe_search'], 'default_theme': settings['ui']['default_theme'], 'version': VERSION_STRING, + 'brand': { + 'GIT_URL': brand.GIT_URL, + 'DOCS_URL': brand.DOCS_URL + }, 'doi_resolvers': [r for r in settings['doi_resolvers']], 'default_doi_resolver': settings['default_doi_resolver'], }) |