14 lines
461 B
Python
14 lines
461 B
Python
from flask import Flask
|
|
from . import reset
|
|
|
|
def create_app():
|
|
app = Flask(__name__, instance_relative_config=True, template_folder="ui/templates", static_folder="ui/static")
|
|
#app.config.from_object("instance.config.DebugConfig")
|
|
app.config.from_envvar("LDAP_ADDR")
|
|
app.config.from_envvar("LDAP_PORT")
|
|
app.config.from_envvar("LDAP_TLS")
|
|
app.config.from_envvar("BASE_DN")
|
|
|
|
app.register_blueprint(reset.bp)
|
|
|
|
return app |