mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-07 19:08:32 -05:00
Allow users to set a combined certificte and key file for additional certificates in the SSL context
This commit is contained in:
@@ -177,6 +177,23 @@ def settings_values_check(app_configs, **kwargs):
|
||||
)
|
||||
return msgs
|
||||
|
||||
def _email_certificate_validate():
|
||||
msgs = []
|
||||
# Existence checks
|
||||
if (
|
||||
settings.EMAIL_CERTIFICATE_FILE is not None
|
||||
and not settings.EMAIL_CERTIFICATE_FILE.is_file()
|
||||
):
|
||||
msgs.append(
|
||||
Error(
|
||||
f"Email cert {settings.EMAIL_CERTIFICATE_FILE} is not a file",
|
||||
),
|
||||
)
|
||||
return msgs
|
||||
|
||||
return (
|
||||
_ocrmypdf_settings_check() + _timezone_validate() + _barcode_scanner_validate()
|
||||
_ocrmypdf_settings_check()
|
||||
+ _timezone_validate()
|
||||
+ _barcode_scanner_validate()
|
||||
+ _email_certificate_validate()
|
||||
)
|
||||
|
Reference in New Issue
Block a user