mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
add sslmode configuration option fixes #298
This commit is contained in:
parent
bcb2853150
commit
6c7281ae88
3 changed files with 8 additions and 0 deletions
|
|
@ -253,6 +253,7 @@ if os.getenv("PAPERLESS_DBHOST"):
|
|||
"NAME": os.getenv("PAPERLESS_DBNAME", "paperless"),
|
||||
"USER": os.getenv("PAPERLESS_DBUSER", "paperless"),
|
||||
"PASSWORD": os.getenv("PAPERLESS_DBPASS", "paperless"),
|
||||
'OPTIONS': {'sslmode': os.getenv("PAPERLESS_DBSSLMODE", "prefer")},
|
||||
}
|
||||
if os.getenv("PAPERLESS_DBPORT"):
|
||||
DATABASES["default"]["PORT"] = os.getenv("PAPERLESS_DBPORT")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue