Allow configurable host and port for rida.py

This commit is contained in:
Ralph Bean
2016-07-13 11:34:36 -04:00
parent 80cd8c3fad
commit 5e7244fe9c
3 changed files with 13 additions and 1 deletions

View File

@@ -190,4 +190,9 @@ def _establish_ssl_context(conf):
if __name__ == "__main__":
logging.info("Starting Rida")
ssl_ctx = _establish_ssl_context(conf)
app.run(request_handler = rida.auth.ClientCertRequestHandler, ssl_context=ssl_ctx)
app.run(
host=conf.host,
port=conf.port,
request_handler=rida.auth.ClientCertRequestHandler,
ssl_context=ssl_ctx,
)