Add NOPAQUE_HOST and NOPAQUE_PORT variables

This commit is contained in:
Patrick Jentsch
2020-11-06 10:28:05 +01:00
parent ab21768311
commit 9e2cc6486c
2 changed files with 9 additions and 1 deletions

View File

@ -60,4 +60,6 @@ def test():
if __name__ == '__main__':
socketio.run(app, host='0.0.0.0')
host = os.environ.get('NOPAQUE_HOST', '0.0.0.0')
port = int(os.environ.get('NOPAQUE_PORT', '5000'))
socketio.run(app, host=host, port=port)