diff options
| author | Noémi Ványi <kvch@users.noreply.github.com> | 2019-06-30 13:45:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-30 13:45:09 +0200 |
| commit | 6c750528749afcfd878347df78ccd45aaf8afcd6 (patch) | |
| tree | 6d345fd9d6537dc712d2d7b705e62af50e242332 /searx | |
| parent | 06979fa0829697ed3b0b1946a2ef7b43f308e2c4 (diff) | |
| parent | 4c768f9fe6e43936d3f06ad619a45fe07fa8bebf (diff) | |
Merge branch 'master' into ne/improve-infinite-scroll
Diffstat (limited to 'searx')
| -rw-r--r-- | searx/__init__.py | 2 | ||||
| -rw-r--r-- | searx/webapp.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/searx/__init__.py b/searx/__init__.py index 4d7b2a8d3..d32fe0066 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -91,3 +91,5 @@ logger.info('Initialisation done') if 'SEARX_SECRET' in environ: settings['server']['secret_key'] = environ['SEARX_SECRET'] +if 'SEARX_BIND_ADDRESS' in environ: + settings['server']['bind_address'] = environ['SEARX_BIND_ADDRESS'] diff --git a/searx/webapp.py b/searx/webapp.py index 727259774..8290b6822 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -846,7 +846,7 @@ def clear_cookies(): @app.route('/config') def config(): - return jsonify({'categories': categories.keys(), + return jsonify({'categories': list(categories.keys()), 'engines': [{'name': engine_name, 'categories': engine.categories, 'shortcut': engine.shortcut, @@ -854,7 +854,7 @@ def config(): 'paging': engine.paging, 'language_support': engine.language_support, 'supported_languages': - engine.supported_languages.keys() + list(engine.supported_languages.keys()) if isinstance(engine.supported_languages, dict) else engine.supported_languages, 'safesearch': engine.safesearch, |