515 Commits

Author SHA1 Message Date
Daniel Quinn
7b586e6857 Fixes #172
Introduce some creative code around setting of ALLOWED_HOSTS that defaults to ['*'].  Also added PAPERLESS_ALLOWED_HOSTS to paperless.conf.example with an explanation as to what it's for
2017-01-03 09:57:27 +00:00
Daniel Quinn
350d2fb747 Version bump for convert binary fix 2017-01-01 22:46:29 +00:00
Daniel Quinn
5b53cc2139 Add a default value for CONVERT_BINARY 2017-01-01 22:44:04 +00:00
Daniel Quinn
0ca5373f6d Version 0.3.0! 2017-01-01 18:41:23 +00:00
Daniel Quinn
23bd887f16 Consumer loop time is now configurable 2017-01-01 18:41:06 +00:00
Daniel Quinn
db7810a9d2 Fixed bad indentation 2017-01-01 18:40:23 +00:00
Daniel Quinn
30be13ae33 Added system checks to warn people of misconfigurations 2017-01-01 18:39:34 +00:00
Daniel Quinn
294b8abc3f Fixes #164
There appears to be quite the mess out there with regard to how DRF
handles filtering.  DRF has its own built-in stuff, but recommends
django_filter for the advanced stuff, which has its own overriding
module that explodes with this message when used as per the
documentation:

  AttributeError: 'NoneType' object has no attribute 'DjangoFilterBackend'

Then there's djangorestframework-filter, another package that claims to
do the same thing, that does everything just differently enough that
nothing worked while I had it enabled.

I ended up using django_filter, but doing so importing each element
explicitly, rather than just using the recommended (and broken, at least
in this project) method of:

    import django_filter.restframework as fitlers

Anyway, this should bring the dependencies up to date, and strips out a
lot of redundant code.
2017-01-01 16:36:42 +00:00
Jeff Bogatay
6436e02923 Allow overriding default media directory 2016-08-23 14:48:13 -04:00
Jeff Bogatay
a1cd05f9e2 Prettify code, change ENV variable name 2016-08-23 13:28:08 -04:00
Jeff Bogatay
fc00416e32 Remove debug stuff 2016-08-23 12:22:36 -04:00
Jeff Bogatay
93fb1be253 Make database location variable 2016-08-23 12:18:28 -04:00
Jeff Bogatay
2a1818d09a Secure document fetching 2016-08-23 11:31:54 -04:00
Lenz Weber
e7566d2b1c style changes, variable renames
* PEP8 conformity
* rename run_post_consume_external_script to run_post_consume_script
* rename run_pre_consume_external_script to run_pre_consume_script
* change order of declaration and use from post...pre to pre...post
2016-06-24 16:53:55 +02:00
Lenz Weber
c728b1dd21 add pre-consume hook
a script hook can be defined in /etc/paperless.conf as
PAPERLESS_PRE_CONSUME_SCRIPT
2016-06-23 21:57:17 +02:00
Brian Martin
52c5aafb3f Convert Density
Add settings variable for the convert density setting.
If no variable is set, default to 300.
2016-05-13 22:47:40 -04:00
Daniel Quinn
3c79b55ae6 Allow USE_SSL to be set via an environment var. 2016-04-28 06:03:39 +01:00
Daniel Quinn
cb2df58b27 Everything appears to be working 2016-03-28 19:47:11 +01:00
Daniel Quinn
bbe691f342 Merge pull request #101 from danielquinn/issue/89
Closes #89.
2016-03-28 14:25:56 +01:00
Daniel Quinn
b92e007e15 Removed log components and introduced signals for tags & correspondents 2016-03-28 11:11:15 +01:00
Daniel Quinn
9991f5a6b2 Introducing optional env vars for ImageMagick 2016-03-25 20:31:15 +00:00
Daniel Quinn
1ef119eb82 Added basic filtering + search 2016-03-09 01:05:46 +00:00
Pit Kleyersburg
fb36a49c26 Add unpaper as another pre-processing step 2016-03-06 15:30:37 +01:00
Daniel Quinn
52f15b4de1 The first stages of getting thumbnails back 2016-03-05 01:57:49 +00:00
Daniel Quinn
5c41e717f0 Missed on case of 'sender' 2016-03-05 00:23:14 +00:00
Daniel Quinn
070463b85a s/Sender/Correspondent & reworked the (im|ex)porter 2016-03-03 20:52:42 +00:00
Daniel Quinn
55dcbcc47f Forgot a slash 2016-03-03 18:18:38 +00:00
Daniel Quinn
b8be20b565 Preparing for a proper UI 2016-03-03 18:09:10 +00:00
Daniel Quinn
0aead1fbe6 #68: Using dotenv for a proper unix config file 2016-03-03 17:59:27 +00:00
Daniel Quinn
857c7ac654 #44: Harmonise environment variables with constant names 2016-03-01 22:39:40 +00:00
Daniel Quinn
26c3781350 #44: Harmonise environment variables with constant names 2016-03-01 22:37:42 +00:00
Daniel Quinn
7d1aa1175f pep8 2016-03-01 19:03:28 +00:00
Daniel Quinn
26fc27da9b Setting appropriate permissions 2016-03-01 18:57:12 +00:00
Daniel Quinn
2fe9b0cbc1 New logging appears to work 2016-02-27 20:18:50 +00:00
Daniel Quinn
1aecb1e63a Compensate for case and format of jpg vs. jpeg 2016-02-23 20:15:13 +00:00
Daniel Quinn
55a7dc2444 pep8 2016-02-21 01:43:48 +00:00
Daniel Quinn
0d46643026 Version bump 2016-02-21 01:24:30 +00:00
Daniel Quinn
17d3a44952 A crude API is in place 2016-02-21 00:55:38 +00:00
Daniel Quinn
809fb8fa1f Moved the default GNUPG home to /tmp for tox-friendliness 2016-02-21 00:29:59 +00:00
Daniel Quinn
422ae9303a pep8 2016-02-21 00:14:50 +00:00
Daniel Quinn
cebc44f2c9 API is halfway there 2016-02-16 09:28:34 +00:00
Daniel Quinn
aea4af5d3b Version bump and feature update 2016-02-14 17:18:28 +00:00
Daniel Quinn
7843ea5037 Added and implemented a rudimentary logger 2016-02-14 16:09:52 +00:00
Pit Kleyersburg
f5beda9c56 Enable parallel OCR processing
At the moment, every page in a PDF will be processed one by one using
tesseract. Since the processing of a single page is independent from every
other page, one can make use of multi-core machines.

This PR introduces a multiprocessing pool to process multiple pages
simultaneously. The amount of threads to use can be specified in the
environment variable `PAPERLESS_OCR_THREADS`. This will default to the
number of cores/hyperthreads Python detects for your system.
2016-02-14 15:57:42 +01:00
Daniel Quinn
cef4abc01d version bump 2016-02-11 12:25:12 +00:00
Daniel Quinn
0eaed36420 The 'API' is written but untested 2016-02-08 23:46:16 +00:00
Daniel Quinn
d8ad6b589b Added pytest and broke up the consumer into file and mail 2016-02-05 00:23:36 +00:00
Daniel Quinn
a70b40f618 Broke the consumer script into separate files and started on a mail consumer 2016-01-30 01:18:52 +00:00
Daniel Quinn
3026593d6c Version bump for automated tagging 2016-01-28 07:29:25 +00:00
Daniel Quinn
286292dbf9 Added some documentation 2016-01-24 20:15:50 -05:00