From c74c06c3271a1e834431d2b4fb1f4dc5ef307759 Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Fri, 14 Apr 2023 19:26:02 -0400 Subject: [PATCH] Added some missing settings to the new `AppSettings` class. Corrected typo in app setup method. --- powerdnsadmin/__init__.py | 2 +- powerdnsadmin/lib/settings.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/powerdnsadmin/__init__.py b/powerdnsadmin/__init__.py index 32ad19e..660f96b 100755 --- a/powerdnsadmin/__init__.py +++ b/powerdnsadmin/__init__.py @@ -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 diff --git a/powerdnsadmin/lib/settings.py b/powerdnsadmin/lib/settings.py index bebc9de..b154112 100644 --- a/powerdnsadmin/lib/settings.py +++ b/powerdnsadmin/lib/settings.py @@ -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,