From b18b0706225fb16341969838e2aba41cfe5ff1f9 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Mon, 9 Oct 2023 14:47:31 -0700 Subject: [PATCH] Renames the email certificate so it doesn't get read during Docker startup (#4346) --- docs/configuration.md | 2 +- src/paperless/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 45a004b40..ab475e382 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -501,7 +501,7 @@ HTTP header/value expected by Django, eg `'["HTTP_X_FORWARDED_PROTO", "https"]'` Settings this value has security implications. Read the Django documentation and be sure you understand its usage before setting it. -#### [`PAPERLESS_EMAIL_CERTIFICATE_FILE=`](#PAPERLESS_EMAIL_CERTIFICATE_FILE) {#PAPERLESS_EMAIL_CERTIFICATE_FILE} +#### [`PAPERLESS_EMAIL_CERTIFICATE_LOCATION=`](#PAPERLESS_EMAIL_CERTIFICATE_LOCATION) {#PAPERLESS_EMAIL_CERTIFICATE_LOCATION} : Configures an additional SSL certificate file containing a [certificate](https://docs.python.org/3/library/ssl.html#certificates) or certificate chain which should be trusted for validating SSL connections against mail providers. diff --git a/src/paperless/settings.py b/src/paperless/settings.py index f3cbb6ee2..c61c55117 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -483,7 +483,7 @@ CSRF_COOKIE_NAME = f"{COOKIE_PREFIX}csrftoken" SESSION_COOKIE_NAME = f"{COOKIE_PREFIX}sessionid" LANGUAGE_COOKIE_NAME = f"{COOKIE_PREFIX}django_language" -EMAIL_CERTIFICATE_FILE = __get_path("PAPERLESS_EMAIL_CERTIFICATE_FILE") +EMAIL_CERTIFICATE_FILE = __get_path("PAPERLESS_EMAIL_CERTIFICATE_LOCATION") ###############################################################################