feat: Add authentication configuration and validation
- Introduced new authentication settings in config.py including `auth_enabled`, `admin_username`, `admin_password`, and `session_secret`. - Added validation for `session_secret` to ensure it meets security requirements when authentication is enabled. - Updated main.py to conditionally mount static files and log warnings if the directory is not found. - Removed unused email template files and added new authentication and notification setup documentation. - Implemented authentication configuration validation in validators.py and updated settings display. - Enhanced the user interface with a new login template and SVG assets for branding. - Added comprehensive guides for setting up authentication and notifications in the documentation.
This commit is contained in:
@@ -77,9 +77,13 @@ def get_settings_for_display(show_values=False):
|
||||
],
|
||||
"Authentication": [
|
||||
"auth_enabled",
|
||||
"session_secret",
|
||||
"admin_username",
|
||||
"admin_password",
|
||||
"authentik_client_id",
|
||||
"authentik_client_secret",
|
||||
"authentik_config_url"
|
||||
"authentik_config_url",
|
||||
"oauth_provider_name"
|
||||
],
|
||||
"Email": [
|
||||
"email_host",
|
||||
|
||||
Reference in New Issue
Block a user