|
|
@ -44,6 +44,7 @@ default_config = {
|
|
|
|
'WELCOME_BODY': 'Dummy welcome body',
|
|
|
|
'WELCOME_BODY': 'Dummy welcome body',
|
|
|
|
'DKIM_SELECTOR': 'dkim',
|
|
|
|
'DKIM_SELECTOR': 'dkim',
|
|
|
|
'DKIM_PATH': '/dkim/{domain}.{selector}.key',
|
|
|
|
'DKIM_PATH': '/dkim/{domain}.{selector}.key',
|
|
|
|
|
|
|
|
'DEFAULT_QUOTA': 1000000000,
|
|
|
|
# Web settings
|
|
|
|
# Web settings
|
|
|
|
'SITENAME': 'Mailu',
|
|
|
|
'SITENAME': 'Mailu',
|
|
|
|
'WEBSITE': 'https://mailu.io',
|
|
|
|
'WEBSITE': 'https://mailu.io',
|
|
|
@ -93,8 +94,10 @@ def handle_needs_login():
|
|
|
|
|
|
|
|
|
|
|
|
@app.context_processor
|
|
|
|
@app.context_processor
|
|
|
|
def inject_defaults():
|
|
|
|
def inject_defaults():
|
|
|
|
|
|
|
|
signup_domains = models.Domain.query.filter_by(signup_enabled=True).all()
|
|
|
|
return dict(
|
|
|
|
return dict(
|
|
|
|
current_user=flask_login.current_user,
|
|
|
|
current_user=flask_login.current_user,
|
|
|
|
|
|
|
|
signup_domains=signup_domains,
|
|
|
|
config=app.config
|
|
|
|
config=app.config
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|