214 Commits

Author SHA1 Message Date
Michael Shamoon
0286abd92a Refactor to extend RemoteUserMiddleware & add authentication for Django 2021-01-03 21:21:39 -08:00
Michael Shamoon
8caa61bd9d Merge remote-tracking branch 'upstream/dev' into feature/remote-user 2021-01-03 00:38:10 -08:00
Michael Shamoon
009de5184f Allow authentication via HTTP_REMOTE_USER 2021-01-03 00:37:19 -08:00
jonaswinkler
4eb3962b8d Merge branch 'dev' into feature-localization 2021-01-02 00:15:03 +01:00
Jo Vandeginste
aa88f25267 Refactor after feedback:
- rename PAPERLESS_TIKA to PAPERLESS_TIKA_ENABLED
- all other env params now start with PAPERLESS_TIKA
- convert_to_pdf as class instance method
- smaller details

Signed-off-by: Jo Vandeginste <Jo.Vandeginste@kuleuven.be>
2020-12-31 14:41:47 +01:00
jonaswinkler
29730a9c13 add translation support to the backend #215 2020-12-30 01:39:06 +01:00
jonaswinkler
05d4ca06fe add initial localization support for the front end #215 2020-12-30 00:26:06 +01:00
Jo Vandeginste
bf8739864d Add the new paperless_tika parser
This parser will use an external Tika and Gotenberg server to parse
"Office" documents (.doc, .xls, .odt, etc.)

Signed-off-by: Jo Vandeginste <Jo.Vandeginste@kuleuven.be>
2020-12-29 21:51:21 +01:00
jonaswinkler
fe73f42495 added configuration option for the font #197 #207 2020-12-29 12:26:41 +01:00
Jo Vandeginste
3f4db5cd32 Update settings.py 2020-12-28 22:37:53 +01:00
Jo Vandeginste
c3b4f40447 Allow extending INSTALLED_APPS via environment
This allows a user to add "apps" (aka parsers) through the environment.

Especially useful when using Docker, and adding a test-parser.

Usage:

```yaml
services:
  webserver:
    environment:
      PAPERLESS_APPS: paperless_tika.apps.PaperlessTikaConfig
```

You can add more by separating them with a `,`:

```yaml
PAPERLESS_APPS: app1,app2
```
2020-12-28 22:19:30 +01:00
jonaswinkler
df9ac0cb8a removed x-frame-options, since that was only used for the <object> pdf display tag. 2020-12-19 16:46:04 +01:00
jonaswinkler
e02838b198 fixes #122 2020-12-11 17:49:32 +01:00
jonaswinkler
638113864f fixes #90 2020-12-08 13:54:49 +01:00
jonaswinkler
249422570e mail handling: When exceptions occur during account/rule/message handling, paperless will continue with the next account/rule/message.
mail handling: When paperless encounters a very long

fixes #82
2020-12-04 15:42:05 +01:00
jonaswinkler
9546d6bf8c updated the API, it now supports tags, correspondents, types and title when uploading documents. 2020-12-03 18:36:23 +01:00
jonaswinkler
39e3a8a04f reorganized logging. 2020-12-03 01:03:56 +01:00
jonaswinkler
578a1626e1 documentation. 2020-12-01 15:26:22 +01:00
jonaswinkler
e528a8446e Merge branch 'dev' into feature-ocrmypdf 2020-11-30 23:53:19 +01:00
jayme-github
a90b7a647e Create tags from sub directories
The names of sub directories in the consumer directory will be added as
tags for the document to be consumed.
To enable this, set:
PAPERLESS_CONSUMER_RECURSIVE=1
PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS=1

Fixes #50
2020-11-30 14:22:35 +01:00
jonaswinkler
388f6cfbe6 reorganised settings documentation and added OCR_USER_ARGS 2020-11-29 12:38:32 +01:00
jonaswinkler
7bba3065fe Merge branch 'dev' into feature-ocrmypdf 2020-11-27 14:03:19 +01:00
jonaswinkler
6cd54034d2 tests: disable db logger in all tests except logger tests 2020-11-27 13:13:11 +01:00
Jonas Winkler
3b655c95d9 added image DPI detection to the tesseract parser. 2020-11-25 19:37:48 +01:00
Jonas Winkler
8b1aa9cf68 removed unused settings. 2020-11-25 19:30:11 +01:00
Jonas Winkler
15935ab61f reworked PDF parser that uses OCRmyPDF and produces archive files. 2020-11-25 14:50:43 +01:00
Jonas Winkler
28cd246d48 added archive directory. 2020-11-25 14:45:21 +01:00
Jonas Winkler
b275297a05 added setting PAPERLESS_AUTO_LOGIN_USERNAME 2020-11-23 22:50:02 +01:00
Jonas Winkler
ae198f0767 new setting: PAPERLESS_OCR_PAGES 2020-11-22 12:54:08 +01:00
Jonas Winkler
99c5ecd99a moved the documentation of the config
to the actual docs.
2020-11-19 13:18:57 +01:00
Jonas Winkler
4230a0a474 a new setting that allows you to skip thumbnail optimization. 2020-11-18 22:42:05 +01:00
Jonas Winkler
680ab3d56b updated logging, logging for the mail consumer to see whats happening 2020-11-18 13:23:30 +01:00
Jonas Winkler
24bb8c71c9 Merge branch 'dev' into mail_rework 2020-11-17 00:23:10 +01:00
Jonas Winkler
e30f0b274b added more testing 2020-11-16 23:16:37 +01:00
Jonas Winkler
2119eb4c15 added option for polling 2020-11-16 18:52:13 +01:00
Jonas Winkler
bd04c966c5 first version of the new consumer. 2020-11-16 18:26:54 +01:00
Jonas Winkler
d99b4623f8 first implementation of the mail rework 2020-11-15 23:56:22 +01:00
Jonas Winkler
eb6805e37e code style fixes 2020-11-12 21:09:45 +01:00
Jonas Winkler
4fba7b661e trying to make travis work. 2020-11-12 17:12:58 +01:00
Jonas Winkler
c5f0da388b fixes #35 2020-11-12 10:01:22 +01:00
Jonas Winkler
3048342de7 added a setting: delete duplicate documents 2020-11-10 01:47:58 +01:00
Jonas Winkler
d3e7c8ff4e added a task scheduler for recurring tasks 2020-11-09 20:29:10 +01:00
Jonas Winkler
0f498f1016 removed no-login option since it wasn't working with the new django version anyway. 2020-11-09 15:28:45 +01:00
Jonas Winkler
3b0e794b3d use django authentication instead of auth tokens. 2020-11-09 15:28:12 +01:00
Jonas Winkler
548941b1bb added the filename handling back into the code 2020-11-08 13:00:45 +01:00
Jonas Winkler
5b3dbd8e6e allow document display with angular dev server 2020-11-04 17:26:49 +01:00
Jonas Winkler
64ee9a4941 updated settings: docker image runs without ENV variables 2020-11-03 12:23:24 +01:00
Jonas Winkler
749d152347 updated configuration 2020-11-02 21:59:36 +01:00
Jonas Winkler
157d440415 removed unused settings, migrations now match originals 2020-11-02 20:16:10 +01:00
Jonas Winkler
2a530accf7 renamed logger 2020-11-02 18:54:27 +01:00