示例#1
0
def main():
    configure_app()
    context = SSL.Context(SSL.SSLv23_METHOD)
    context.use_privatekey_file(app.config['DATA'] + '/server.key')
    context.use_certificate_file(app.config['DATA'] + '/server.crt')

    app.run(
        host=app.config['GSTACK_BIND_ADDRESS'],
        port=int(app.config['GSTACK_PORT']),
        debug=app.config['DEBUG'],
        ssl_context=context
    )
示例#2
0
 def _configure_app(self):
     configure_app(settings=settings)