mirror of https://github.com/MISP/misp-dashboard
Merge remote-tracking branch 'upstream/master' into modules
commit
5134aac355
|
@ -1,3 +1,7 @@
|
|||
[Server]
|
||||
host = localhost
|
||||
port = 8001
|
||||
|
||||
[Dashboard]
|
||||
#hours
|
||||
graph_log_refresh_rate = 1
|
||||
|
|
|
@ -23,6 +23,9 @@ cfg.read(configfile)
|
|||
logger = logging.getLogger('werkzeug')
|
||||
logger.setLevel(logging.ERROR)
|
||||
|
||||
server_host = cfg.get("Server", "host")
|
||||
server_port = cfg.getint("Server", "port")
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
redis_server_log = redis.StrictRedis(
|
||||
|
@ -545,4 +548,4 @@ def getTypeaheadData():
|
|||
return jsonify(data)
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='localhost', port=8001, threaded=True)
|
||||
app.run(host=server_host, port=server_port, threaded=True)
|
||||
|
|
Loading…
Reference in New Issue