From d0830d4edf8a9ee794d5897afd813c88f0ea720b Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sun, 2 Aug 2015 19:03:55 +0200 Subject: [PATCH] [enh] add settings option to set listening address - closes #397 --- searx/settings.yml | 1 + searx/settings_robot.yml | 1 + searx/webapp.py | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/searx/settings.yml b/searx/settings.yml index 03d895363..31bde02af 100644 --- 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 index c6fe2282f..36907e6eb 100644 --- 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 index fb7157b47..d45d01ecc 100644 --- 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'] )