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'] )