1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

[enh] add settings option to set listening address - closes #397

This commit is contained in:
Adam Tauber 2015-08-02 19:03:55 +02:00
parent a905e4e7db
commit d0830d4edf
3 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

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