summaryrefslogtreecommitdiff
path: root/searx/__init__.py
diff options
context:
space:
mode:
authorNicolas Gelot <nicofonk@gmail.com>2019-06-17 22:08:35 +0200
committerNicolas Gelot <nicofonk@gmail.com>2019-06-17 22:42:56 +0200
commitdb1dfa4a280b8f886f19619ea01c01687937b5ab (patch)
tree412ec7a1a052a2b39a3233afec72f5ac63a5564a /searx/__init__.py
parent8189b0d192224abe9e8ce61747328ebdc34fabb1 (diff)
downloadsearxng-db1dfa4a280b8f886f19619ea01c01687937b5ab.tar.gz
searxng-db1dfa4a280b8f886f19619ea01c01687937b5ab.zip
Add addr setup via SEARX_BIND_ADDRESS
Diffstat (limited to 'searx/__init__.py')
-rw-r--r--searx/__init__.py2
1 files changed, 2 insertions, 0 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']