From 3c79b55ae65a0953979ccfbf2a88b428ca93fdfe Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Thu, 28 Apr 2016 06:03:39 +0100 Subject: [PATCH] Allow USE_SSL to be set via an environment var. --- 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 85d756bf4..db74d9cea 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -209,7 +209,7 @@ MAIL_CONSUMPTION = { "PORT": os.getenv("PAPERLESS_CONSUME_MAIL_PORT"), "USERNAME": os.getenv("PAPERLESS_CONSUME_MAIL_USER"), "PASSWORD": os.getenv("PAPERLESS_CONSUME_MAIL_PASS"), - "USE_SSL": True, # If True, use SSL/TLS to connect + "USE_SSL": os.getenv("PAPERLESS_CONSUME_MAIL_USE_SSL", "y").lower() == "y", # If True, use SSL/TLS to connect "INBOX": "INBOX" # The name of the inbox on the server }