Merge pull request #262 from Mailu/feature-xforwarded-prefix
Stop hardcoding URL prefix in containersmaster
commit
914427f852
@ -1,4 +1,4 @@
|
||||
from mailu.admin import db, models, forms
|
||||
from mailu import db, models, forms
|
||||
|
||||
import flask
|
||||
import flask_login
|
@ -1,33 +0,0 @@
|
||||
from flask import Blueprint
|
||||
from mailu import login_manager, db
|
||||
|
||||
import flask_login
|
||||
|
||||
|
||||
app = Blueprint(
|
||||
'admin', __name__,
|
||||
template_folder='templates',
|
||||
static_folder='static')
|
||||
|
||||
# Import models
|
||||
from mailu.admin import models
|
||||
|
||||
# Register the login components
|
||||
login_manager.login_view = "admin.login"
|
||||
login_manager.user_loader(models.User.query.get)
|
||||
|
||||
@app.context_processor
|
||||
def inject_user():
|
||||
return dict(current_user=flask_login.current_user)
|
||||
|
||||
# Import views
|
||||
from mailu.admin.views import \
|
||||
admins, \
|
||||
managers, \
|
||||
base, \
|
||||
aliases, \
|
||||
users, \
|
||||
domains, \
|
||||
relays, \
|
||||
alternatives, \
|
||||
fetches
|
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue