Commit f01868f7 authored by ale's avatar ale
Browse files

allow a caller to pass settings to make_app()

parent 64ffd1af
......@@ -92,9 +92,11 @@ def sign():
return crypto.dump_certificate(crypto.FILETYPE_PEM, signed_cert)
def make_app(ca_instance):
def make_app(ca_instance, settings={}):
app = Flask(__name__)
if settings:
app.config.from_envvar('CA_APP_SETTINGS', silent=True) = ca_instance
return app
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment