Added some missing settings to the new AppSettings class.

Corrected typo in app setup method.
This commit is contained in:
Matt Scott 2023-04-14 19:26:02 -04:00
parent 601539f16e
commit c74c06c327
No known key found for this signature in database
GPG Key ID: A9A0AFFC0E079001
2 changed files with 5 additions and 1 deletions

View File

@ -87,7 +87,7 @@ def create_app(config=None):
app.jinja_env.filters['format_datetime_local'] = utils.format_datetime
app.jinja_env.filters['format_zone_type'] = utils.format_zone_type
# Register context proccessors
# Register context processors
from .models.setting import Setting
@app.context_processor

View File

@ -36,6 +36,7 @@ class AppSettings(object):
'remote_user_enabled': False,
'remote_user_cookies': [],
'remote_user_logout_url': '',
'hsts_enabled': False,
'server_external_ssl': True,
'maintenance': False,
'fullscreen_layout': True,
@ -74,6 +75,7 @@ class AppSettings(object):
'deny_domain_override': False,
'account_name_extra_chars': False,
'gravatar_enabled': False,
'pdns_admin_log_level': 'WARNING',
# Local Authentication Settings
'local_db_enabled': True,
@ -306,6 +308,7 @@ class AppSettings(object):
'mail_username': str,
'mail_password': str,
'mail_default_sender': str,
'hsts_enabled': bool,
'remote_user_enabled': bool,
'remote_user_cookies': list,
'remote_user_logout_url': str,
@ -346,6 +349,7 @@ class AppSettings(object):
'deny_domain_override': bool,
'account_name_extra_chars': bool,
'gravatar_enabled': bool,
'pdns_admin_log_level': str,
'forward_records_allow_edit': dict,
'reverse_records_allow_edit': dict,