mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Set STORAGE_TYPE instead of ENABLE_ENCRYPTION boolean
This allows for future decisions around the types of encryption used (if any). Ideally, I want to replace GPG one day with something elegant out of the cryptography module.
This commit is contained in:
parent
02b40a54e0
commit
885dbf67d5
@ -59,6 +59,14 @@ PAPERLESS_EMAIL_SECRET=""
|
|||||||
#### Security ####
|
#### Security ####
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
# By default, Paperless will attempt to GPG encrypt your PDF files using the
|
||||||
|
# PAPERLESS_PASSPHRASE specified below. If however you're not concerned about
|
||||||
|
# encrypting these files (for example if you have disk encryption locally) then
|
||||||
|
# you don't need this and can safely turn it off by setting
|
||||||
|
# PAPERLESS_STORAGE_TYPE="unencrypted" here. In such a case, the PASSPHRASE
|
||||||
|
# value set below will be ignored.
|
||||||
|
#PAPERLESS_STORAGE_TYPE="gpg"
|
||||||
|
|
||||||
# You must have a passphrase in order for Paperless to work at all. If you set
|
# You must have a passphrase in order for Paperless to work at all. If you set
|
||||||
# this to "", GNUGPG will "encrypt" your PDF by writing it out as a zero-byte
|
# this to "", GNUGPG will "encrypt" your PDF by writing it out as a zero-byte
|
||||||
# file.
|
# file.
|
||||||
|
@ -251,6 +251,14 @@ CONSUMPTION_DIR = os.getenv("PAPERLESS_CONSUMPTION_DIR")
|
|||||||
# slowly, you may want to use a higher value than the default.
|
# slowly, you may want to use a higher value than the default.
|
||||||
CONSUMER_LOOP_TIME = int(os.getenv("PAPERLESS_CONSUMER_LOOP_TIME", 10))
|
CONSUMER_LOOP_TIME = int(os.getenv("PAPERLESS_CONSUMER_LOOP_TIME", 10))
|
||||||
|
|
||||||
|
# By default, Paperless will attempt to GPG encrypt your PDF files using the
|
||||||
|
# PASSPHRASE specified below. If however you're not concerned about encrypting
|
||||||
|
# these files (for example if you have disk encryption locally) then
|
||||||
|
# you don't need this and can safely turn it off by setting STORAGE_TYPE to
|
||||||
|
# "unencrypted" here. In such a case, the PASSPHRASE value set below will be
|
||||||
|
# ignored.
|
||||||
|
STORAGE_TYPE = os.getenv("PAPERLESS_STORAGE_TYPE", "gpg")
|
||||||
|
|
||||||
# This is used to encrypt the original documents and decrypt them later when
|
# This is used to encrypt the original documents and decrypt them later when
|
||||||
# you want to download them. Set it and change the permissions on this file to
|
# you want to download them. Set it and change the permissions on this file to
|
||||||
# 0600, or set it to `None` and you'll be prompted for the passphrase at
|
# 0600, or set it to `None` and you'll be prompted for the passphrase at
|
||||||
@ -259,7 +267,6 @@ CONSUMER_LOOP_TIME = int(os.getenv("PAPERLESS_CONSUMER_LOOP_TIME", 10))
|
|||||||
# with GPG, including an interesting case where it may "encrypt" zero-byte
|
# with GPG, including an interesting case where it may "encrypt" zero-byte
|
||||||
# files.
|
# files.
|
||||||
PASSPHRASE = os.getenv("PAPERLESS_PASSPHRASE")
|
PASSPHRASE = os.getenv("PAPERLESS_PASSPHRASE")
|
||||||
ENABLE_ENCRYPTION = os.getenv('DISABLE_ENCRYPTION') != 'true'
|
|
||||||
|
|
||||||
# Trigger a script after every successful document consumption?
|
# Trigger a script after every successful document consumption?
|
||||||
PRE_CONSUME_SCRIPT = os.getenv("PAPERLESS_PRE_CONSUME_SCRIPT")
|
PRE_CONSUME_SCRIPT = os.getenv("PAPERLESS_PRE_CONSUME_SCRIPT")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user