adding vth code as well as aaf and cert config
[it/otf.git] / otf-robot-test-head / run.py
diff --git a/otf-robot-test-head/run.py b/otf-robot-test-head/run.py
new file mode 100644 (file)
index 0000000..c0c37dc
--- /dev/null
@@ -0,0 +1,14 @@
+from app import create_app\r
+\r
+if __name__ == '__main__':\r
+    app = create_app()\r
+\r
+    # Set SSL context with the certificate chain and the private RSA key.\r
+    context = ('opt/cert/otf.pem', 'opt/cert/privateKey.pem')\r
+    app.run(\r
+        debug=app.config['DEBUG'],\r
+        host='0.0.0.0', port=5000,\r
+        use_reloader=True,\r
+        ssl_context=context)\r
+    # Run without ssl\r
+       # app.run(debug=app.config['DEBUG'], host='0.0.0.0', use_reloader=True, port=5000)
\ No newline at end of file