-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.sample.toml
101 lines (81 loc) · 2.67 KB
/
config.sample.toml
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
# Virtualpaper configuration file
# http api
[api]
# host & port to bind
host = "127.0.0.1"
port = 8000
# secret key, a new one is created if key is empty. Don't expose it.
secret_key = ""
# If you need to define cors hosts, put all hosts here.
cors_hosts = []
# Public facing url, for creating urls for clients
public_url = "http://localhost:8000"
# Token expire time in seconds. Set to 0 to disable. Default value is 1 week.
token_expire_sec = 579600
# disable auth endpoint ratelimits. only disable for testing purposes.
disable_auth_ratelimit = false
# Database, only postgres is supported.
[database]
host = "localhost"
port = 5432
username = "virtualpaper"
password = "very-secret-password"
database = "virtualpaper"
no_ssl = false
# Meilisearch search-engine. A new meilisearch-index is created for each user-id.
[meilisearch]
apikey = ""
url = "http://localhost:7700"
# index. Virtualpaper will create one index for each user, this will be suffix for all indices. Indices are
# named as virtualpaper-<user_id>
index = "virtualpaper"
# Processing / application data.
[processing]
disabled = false
tmp_dir = "/tmp"
# output directory is where all documents / data is persisted.
output_dir = "media"
# Max background workers allowed. If empty, set to number of cpus available.
max_workers = 4
# array of tesseract languages. Each language requires separate tesseract-data package to be installed.
ocr_languages = ["eng"]
# to use pdftotext binary for faster and more reliable pdf parsing, set binary path.
pdftotext_bin = ""
# location of pandoc binary
pandoc_bin = ""
# location of tesseract binary
tesseract_bin = ""
# location of imagemagick's convert binary
imagick_bin = ""
[cronjobs]
disabled = false
# permanently remove deleted documents after 336h or 14 days
documents_trashbin_cleanup_duration = "336h"
# Mail configuration. Uncomment to enable setings mails.
# Host must be smtp server that is accessible with authentication.
# Mail uses TLS if available. Auth is of type PLAIN.
#[mail]
# Smpt host and port.
#host = ""
#port = 587
# smpt plain text authentication
#username = "smptuser"
#password = "smtppasswd"
# From-field in emails
#from = "virtualpaper@demo"
# Default error recipient. Uncomment to send errors via mail.
#error_recipient = "foo@bar.com"
# Logging configuration
[logging]
# Loglevel, valid levels: trace,debug,info,warning,error,fatal,panic
log_level = "INFO"
# Directory for log files
directory = "log"
# Log http requests to stdout
log_http_stdout = true
# Http log file, no http logs if file name is empty
http_log_file = "http.log"
# Application log file
log_file = "virtualpaper.log"
# Log all logs to stdout in, helpful for interactive mode / development
log_stdout = true