mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	add sslmode configuration option fixes #298
This commit is contained in:
		| @@ -53,6 +53,12 @@ PAPERLESS_DBPASS=<password> | ||||
|  | ||||
|     Defaults to "paperless". | ||||
|  | ||||
| PAPERLESS_DBSSLMODE=<mode> | ||||
|     SSL mode to use when connecting to PostgreSQL. | ||||
|  | ||||
|     See `the official documentation about sslmode <https://www.postgresql.org/docs/current/libpq-ssl.html>`_. | ||||
|  | ||||
|     Default is ``prefer``. | ||||
|  | ||||
| Paths and folders | ||||
| ################# | ||||
|   | ||||
| @@ -13,6 +13,7 @@ | ||||
| #PAPERLESS_DBNAME=paperless | ||||
| #PAPERLESS_DBUSER=paperless | ||||
| #PAPERLESS_DBPASS=paperless | ||||
| #PAPERLESS_DBSSLMODE=prefer | ||||
|  | ||||
| # Paths and folders | ||||
|  | ||||
|   | ||||
| @@ -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") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler