First version of the interface #1
@@ -1,9 +1,13 @@
|
|||||||
from flask import Flask, render_template
|
from flask import Flask
|
||||||
from . import reset
|
from . import reset
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
app = Flask(__name__, instance_relative_config=True, template_folder="ui/templates", static_folder="ui/static")
|
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_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)
|
app.register_blueprint(reset.bp)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user