Moved ssl_mode parameter for mysql backend engine (#5771)

This commit is contained in:
MaciejSzczurek 2024-02-15 16:59:33 +01:00 committed by GitHub
parent 0de00a4ac1
commit f6ddcfa839
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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),