mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Added GPG encryption for the PDFs
This commit is contained in:
4
src/paperless/requirements.txt
Normal file
4
src/paperless/requirements.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Django==1.9
|
||||
Pillow==3.0.0
|
||||
pyocr==0.3.1
|
||||
python-gnupg==0.3.8
|
@@ -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
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user