X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=otf-robot-test-head%2Frun.py;fp=otf-robot-test-head%2Frun.py;h=c0c37dcfd7deb53eb99c0fa377c187fc3cfc57a7;hb=f49bd1efeaaddd4891c1f329b18d8cfb28b3e75b;hp=0000000000000000000000000000000000000000;hpb=5d8b2580c97e466f9c5a6c78693c24277d94244c;p=it%2Fotf.git diff --git a/otf-robot-test-head/run.py b/otf-robot-test-head/run.py new file mode 100644 index 0000000..c0c37dc --- /dev/null +++ b/otf-robot-test-head/run.py @@ -0,0 +1,14 @@ +from app import create_app + +if __name__ == '__main__': + app = create_app() + + # Set SSL context with the certificate chain and the private RSA key. + context = ('opt/cert/otf.pem', 'opt/cert/privateKey.pem') + app.run( + debug=app.config['DEBUG'], + host='0.0.0.0', port=5000, + use_reloader=True, + ssl_context=context) + # Run without ssl + # app.run(debug=app.config['DEBUG'], host='0.0.0.0', use_reloader=True, port=5000) \ No newline at end of file