Added GPG encryption for the PDFs

This commit is contained in:
Daniel Quinn
2016-01-01 16:13:59 +00:00
parent 6956376d71
commit f72c515742
8 changed files with 106 additions and 50 deletions

View File

@@ -0,0 +1,4 @@
Django==1.9
Pillow==3.0.0
pyocr==0.3.1
python-gnupg==0.3.8

View File

@@ -135,3 +135,5 @@ MEDIA_URL = "/media/"
CONVERT_BINARY = "/usr/bin/convert"
SCRATCH_DIR = "/tmp/paperless" # Will be created if it doesn't exist
CONSUMPTION_DIR = "/tmp/paperless/consume"
GNUPG_HOME = os.environ.get("HOME", "/dev/null")
PASSPHRASE = None # Set via manage.py

View File

@@ -18,6 +18,9 @@ from django.conf import settings
from django.conf.urls import url, static
from django.contrib import admin
from documents.views import PdfView
urlpatterns = [
url(r"^fetch/(?P<pk>\d+)$", PdfView.as_view(), name="fetch"),
url(r'', admin.site.urls),
] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)