Merge remote-tracking branch 'upstream/master' into modules

pull/16/head
Sami Mokaddem 2017-12-13 09:08:43 +01:00
commit 5134aac355
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
[Server]
host = localhost
port = 8001
[Dashboard]
#hours
graph_log_refresh_rate = 1

View File

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