forked from ciur/papermerge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
papermerge.conf.py.example
172 lines (130 loc) · 4.88 KB
/
papermerge.conf.py.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# Example of papermerge.conf.py
#
# papermerge.conf.py - is a configuration files with python syntax
#
# Copy this file to /etc/papermerge.conf.py and modify it to suit your needs.
# As this file contains passwords it should only be readable by the user
# running Papermerge.
# Paths & Folders
#######################
# You can specify where you want the SQLite database to be stored instead of
# the default location of /data/ within the install directory.
DBDIR = "/path/to/papermerge/db"
# Override the default MEDIA_ROOT. This is where all files are stored.
# The default location is /media/documents/ within the install directory.
# MEDIA_DIR = "/path/to/media/dir"
# Override the default STATIC_ROOT. All static files created with
# "collectstatic" manager-command, their default location is /.... ?
# STATIC_DIR = "/path/to/static/dir"
# Override the default MEDIA_URL here. Unless you're hosting Papermerge off a subdomain
# like /papermerge/, you probably don't need to change this.
MEDIA_URL = "/media/"
# Override the STATIC_URL here. Unless you're hosting Papermerge off a
# subdomain like /papermerge/, you probably don't need to change this.
STATIC_URL = "/static/"
# Document Importer
#########################
# Configuration for ./manage.py importer command
# This where ./manage importer will import your documents from.
IMPORTER_DIR = "/path/to/import/dir"
# Files are considered ready for import if they have been unmodified
# for this duration (in seconds)
FILES_MIN_UNMODIFIED_DURATION = 1
# This setting is ignored on Linux where inotify is used instead of a
# polling loop.
# The number of seconds that Papermerge will wait between checking
# IMPORTER_DIR. If you tend to write documents to this directory
# rarely, you may want to use a higher value than the default (5).
IMPORTER_LOOP_TIME = 5
# These values are required if you want papermerge to import email attachments
# from specific email account.
# If you don't define a HOST, mail checking will just be disabled.
IMPORT_MAIL_HOST = ""
IMPORT_MAIL_USER = ""
IMPORT_MAIL_PASS = ""
# Override the default IMAP inbox here. If not set Papermerge defaults to
# "INBOX".
#IMPORT_MAIL_INBOX="INBOX"
# Any email sent to the target account that does not contain this text will be ignored.
IMPORT_MAIL_SECRET = ""
# Worker
########################
# These settings are used by built-in asyncronious task (celery).
# By default, celery will use local directory as message broker.
# This directory will be created automatically when you start papermerge.
TASK_QUEUE_DIR = "/var/tmp/papermerge/queue"
# Storage
###############
DEFAULT_FILE_STORAGE = "mglib.storage.FileSystemStorage"
# Search Backend
###################
SEARCH_BACKEND = "papermerge.search.backends.db.SearchBackend"
# Metadata
####################
# Metadata plugins. These are external applications (very simple ones), that will
# extract and populate metadata fields.
#
# METADATA_PLUGINS = [
# "lidl_receipts_de.Lidl", # (1)
# "deutschlandradio.Deutschlandradio" # (2)
# ]
#
# (1) check:
# https://github.com/papermerge/lidl-receipts-de
# (2) check:
# https://github.com/papermerge/papermerge-meta-plugin-ard-zdf-deutschlandradio
METADATA_PLUGINS = []
# METADATA_DATE_FORMATS = [
# 'dd.mm.yy',
# 'dd.mm.yyyy',
# 'dd.M.yyyy',
# 'month', Month as locale’s full name, January, February, …, December (en_US);
#Januar, Februar, …, Dezember (de_DE)
# ]
#
# METADATA_CURRENCY_FORMATS = [
# 'dd.cc',
# 'dd,cc'
# ]
#
# METADATA_NUMERIC_FORMATS = [
# 'dddd',
# 'd,ddd',
# 'd.ddd'
# ]
# OCR
#######
# Customize the default language that tesseract will attempt to use when
# parsing documents. It should be a 3-letter language code consistent with ISO
# 639: https://www.loc.gov/standards/iso639-2/php/code_list.php
# Examples:
# eng = for English
# deu = for German
# spa = for Spanish
OCR_DEFAULT_LANGUAGE = "deu"
OCR_LANGUAGES = {
"deu": "Deutsch",
"eng": "English",
"ron": "Romanian",
"rus": "Russian"
}
OCR_BINARY = "/usr/bin/tesseract"
# Internationalization & Localization
######################################
# Internationalization = i18n
#
# In what language is user interface.
# At this point there two options:
#
# en, en-US, en-UK, ... = for user interface in English language
# de, de-DE, de-AT, ... = for user interface in German language
#
# English is default fallback i.e. if you don't specify anything,
# of specify unsupported language - English will be used.
LANGUAGE_CODE = 'en'
# If is set to True, will use same language code as your Web Browser (agent) does.
# Browsers send 'Accept-Language' header with their locale.
# For more, read: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language
# If set to True - will override LANGUAGE_CODE option
# If set to False - language code specified in LANGUAGE_CODE option will be used.
LANGUAGE_FROM_AGENT = False