From f6ddcfa8395ca785d51bce75a6dfb8417cf075b0 Mon Sep 17 00:00:00 2001 From: MaciejSzczurek <117445547+MaciejSzczurek@users.noreply.github.com> Date: Thu, 15 Feb 2024 16:59:33 +0100 Subject: [PATCH] Moved ssl_mode parameter for mysql backend engine (#5771) --- src/paperless/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 163492b1e..2ccad849d 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -586,8 +586,8 @@ def _parse_db_settings() -> dict: options = { "read_default_file": "/etc/mysql/my.cnf", "charset": "utf8mb4", + "ssl_mode": os.getenv("PAPERLESS_DBSSLMODE", "PREFERRED"), "ssl": { - "ssl_mode": os.getenv("PAPERLESS_DBSSLMODE", "PREFERRED"), "ca": os.getenv("PAPERLESS_DBSSLROOTCERT", None), "cert": os.getenv("PAPERLESS_DBSSLCERT", None), "key": os.getenv("PAPERLESS_DBSSLKEY", None),