adding vth code as well as aaf and cert config
[it/otf.git] / otf-robot-test-head / run.py
1 from app import create_app\r
2 \r
3 if __name__ == '__main__':\r
4     app = create_app()\r
5 \r
6     # Set SSL context with the certificate chain and the private RSA key.\r
7     context = ('opt/cert/otf.pem', 'opt/cert/privateKey.pem')\r
8     app.run(\r
9         debug=app.config['DEBUG'],\r
10         host='0.0.0.0', port=5000,\r
11         use_reloader=True,\r
12         ssl_context=context)\r
13     # Run without ssl\r
14         # app.run(debug=app.config['DEBUG'], host='0.0.0.0', use_reloader=True, port=5000)