mirror of https://github.com/MISP/misp-dashboard
Taking server host and port from config
parent
4c04bd02c6
commit
165efc4751
|
@ -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