mirror of https://github.com/searxng/searxng.git
[enh] add settings option to set listening address - closes #397
This commit is contained in:
parent
a905e4e7db
commit
d0830d4edf
|
@ -1,5 +1,6 @@
|
||||||
server:
|
server:
|
||||||
port : 8888
|
port : 8888
|
||||||
|
bind_address : "127.0.0.1" # address to listen on
|
||||||
secret_key : "ultrasecretkey" # change this!
|
secret_key : "ultrasecretkey" # change this!
|
||||||
debug : False # Debug mode, only for development
|
debug : False # Debug mode, only for development
|
||||||
request_timeout : 2.0 # seconds
|
request_timeout : 2.0 # seconds
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
server:
|
server:
|
||||||
port : 11111
|
port : 11111
|
||||||
|
bind_address : 127.0.0.1
|
||||||
secret_key : "ultrasecretkey" # change this!
|
secret_key : "ultrasecretkey" # change this!
|
||||||
debug : False
|
debug : False
|
||||||
request_timeout : 3.0 # seconds
|
request_timeout : 3.0 # seconds
|
||||||
|
|
|
@ -777,7 +777,8 @@ def run():
|
||||||
app.run(
|
app.run(
|
||||||
debug=settings['server']['debug'],
|
debug=settings['server']['debug'],
|
||||||
use_debugger=settings['server']['debug'],
|
use_debugger=settings['server']['debug'],
|
||||||
port=settings['server']['port']
|
port=settings['server']['port'],
|
||||||
|
host=settings['server']['bind_address']
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue