commit: d0830d4edf8a9ee794d5897afd813c88f0ea720b
parent: a905e4e7db3f25564742f51e3c43a65db1fbc15e
Author: Adam Tauber <asciimoo@gmail.com>
Date: Sun, 2 Aug 2015 19:03:55 +0200
[enh] add settings option to set listening address - closes #397
Diffstat:
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/searx/settings.yml b/searx/settings.yml
@@ -1,5 +1,6 @@
server:
port : 8888
+ bind_address : "127.0.0.1" # address to listen on
secret_key : "ultrasecretkey" # change this!
debug : False # Debug mode, only for development
request_timeout : 2.0 # seconds
diff --git a/searx/settings_robot.yml b/searx/settings_robot.yml
@@ -1,5 +1,6 @@
server:
port : 11111
+ bind_address : 127.0.0.1
secret_key : "ultrasecretkey" # change this!
debug : False
request_timeout : 3.0 # seconds
diff --git a/searx/webapp.py b/searx/webapp.py
@@ -777,7 +777,8 @@ def run():
app.run(
debug=settings['server']['debug'],
use_debugger=settings['server']['debug'],
- port=settings['server']['port']
+ port=settings['server']['port'],
+ host=settings['server']['bind_address']
)