Rohan Patel | f49bd1e | 2019-09-23 15:04:19 -0400 | [diff] [blame^] | 1 | from app import create_app |
2 | |||||
3 | if __name__ == '__main__': | ||||
4 | app = create_app() | ||||
5 | |||||
6 | # Set SSL context with the certificate chain and the private RSA key. | ||||
7 | context = ('opt/cert/otf.pem', 'opt/cert/privateKey.pem') | ||||
8 | app.run( | ||||
9 | debug=app.config['DEBUG'], | ||||
10 | host='0.0.0.0', port=5000, | ||||
11 | use_reloader=True, | ||||
12 | ssl_context=context) | ||||
13 | # Run without ssl | ||||
14 | # app.run(debug=app.config['DEBUG'], host='0.0.0.0', use_reloader=True, port=5000) |