mirror of https://github.com/MISP/misp-dashboard
commit
5050a6927f
|
@ -1,3 +1,7 @@
|
|||
[Server]
|
||||
host = localhost
|
||||
port = 8001
|
||||
|
||||
[Dashboard]
|
||||
#hours
|
||||
graph_log_refresh_rate = 1
|
||||
|
|
|
@ -19,6 +19,9 @@ configfile = os.path.join(os.environ['DASH_CONFIG'], 'config.cfg')
|
|||
cfg = configparser.ConfigParser()
|
||||
cfg.read(configfile)
|
||||
|
||||
server_host = cfg.get("Server", "host")
|
||||
server_port = cfg.getint("Server", "port")
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
redis_server_log = redis.StrictRedis(
|
||||
|
@ -541,4 +544,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