2019-07-22 22:53:30 +00:00
|
|
|
docspell.server {
|
2019-07-17 20:03:10 +00:00
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
# This is shown in the top right corner of the web application
|
|
|
|
app-name = "Docspell"
|
|
|
|
|
|
|
|
# This is the id of this node. If you run more than one server, you
|
|
|
|
# have to make sure to provide unique ids per node.
|
|
|
|
app-id = "rest1"
|
|
|
|
|
|
|
|
# This is the base URL this application is deployed to. This is used
|
|
|
|
# to create absolute URLs and to configure the cookie.
|
|
|
|
base-url = "http://localhost:7880"
|
|
|
|
|
|
|
|
# Where the server binds to.
|
|
|
|
bind {
|
|
|
|
address = "localhost"
|
|
|
|
port = 7880
|
|
|
|
}
|
|
|
|
|
2020-06-13 22:48:19 +00:00
|
|
|
# This is a hard limit to restrict the size of a batch that is
|
|
|
|
# returned when searching for items. The user can set this limit
|
|
|
|
# within the client config, but it is restricted by the server to
|
|
|
|
# the number defined here. An admin might choose a lower number
|
|
|
|
# depending on the available resources.
|
2020-06-23 22:04:10 +00:00
|
|
|
max-item-page-size = 200
|
2020-06-13 22:48:19 +00:00
|
|
|
|
2020-08-04 20:45:35 +00:00
|
|
|
# The number of characters to return for each item notes when
|
|
|
|
# searching. Item notes may be very long, when returning them with
|
|
|
|
# all the results from a search, they add quite some data to return.
|
|
|
|
# In order to keep this low, a limit can be defined here.
|
|
|
|
max-note-length = 180
|
|
|
|
|
2020-09-05 14:00:19 +00:00
|
|
|
|
|
|
|
# This defines whether the classification form in the collective
|
|
|
|
# settings is displayed or not. If all joex instances have document
|
|
|
|
# classification disabled, it makes sense to hide its settings from
|
|
|
|
# users.
|
|
|
|
show-classification-settings = true
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
# Authentication.
|
|
|
|
auth {
|
|
|
|
|
|
|
|
# The secret for this server that is used to sign the authenicator
|
|
|
|
# tokens. If multiple servers are running, all must share the same
|
|
|
|
# secret. You can use base64 or hex strings (prefix with b64: and
|
2020-01-19 21:53:58 +00:00
|
|
|
# hex:, respectively).
|
2019-07-22 22:53:30 +00:00
|
|
|
server-secret = "hex:caffee"
|
|
|
|
|
|
|
|
# How long an authentication token is valid. The web application
|
|
|
|
# will get a new one periodically.
|
|
|
|
session-valid = "5 minutes"
|
|
|
|
}
|
|
|
|
|
2020-05-23 10:57:25 +00:00
|
|
|
# This endpoint allows to upload files to any collective. The
|
|
|
|
# intention is that local software integrates with docspell more
|
|
|
|
# easily. Therefore the endpoint is not protected by the usual
|
|
|
|
# means.
|
|
|
|
#
|
|
|
|
# For security reasons, this endpoint is disabled by default. If
|
|
|
|
# enabled, you can choose from some ways to protect it. It may be a
|
|
|
|
# good idea to further protect this endpoint using a firewall, such
|
|
|
|
# that outside traffic is not routed.
|
|
|
|
#
|
|
|
|
# NOTE: If all protection methods are disabled, the endpoint is not
|
|
|
|
# protected at all!
|
|
|
|
integration-endpoint {
|
|
|
|
enabled = false
|
|
|
|
|
|
|
|
# The priority to use when submitting files through this endpoint.
|
|
|
|
priority = "low"
|
|
|
|
|
|
|
|
# IPv4 addresses to allow access. An empty list, if enabled,
|
|
|
|
# prohibits all requests. IP addresses may be specified as simple
|
|
|
|
# globs: a part marked as `*' matches any octet, like in
|
|
|
|
# `192.168.*.*`. The `127.0.0.1' (the default) matches the
|
|
|
|
# loopback address.
|
|
|
|
allowed-ips {
|
2020-05-27 21:30:52 +00:00
|
|
|
enabled = false
|
2020-05-23 10:57:25 +00:00
|
|
|
ips = [ "127.0.0.1" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
# Requests are expected to use http basic auth when uploading
|
|
|
|
# files.
|
|
|
|
http-basic {
|
|
|
|
enabled = false
|
|
|
|
realm = "Docspell Integration"
|
|
|
|
user = "docspell-int"
|
|
|
|
password = "docspell-int"
|
|
|
|
}
|
|
|
|
|
|
|
|
# Requests are expected to supply some specific header when
|
|
|
|
# uploading files.
|
|
|
|
http-header {
|
|
|
|
enabled = false
|
|
|
|
header-name = "Docspell-Integration"
|
|
|
|
header-value = "some-secret"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-21 18:13:33 +00:00
|
|
|
# Configuration of the full-text search engine.
|
|
|
|
full-text-search {
|
|
|
|
# The full-text search feature can be disabled. It requires an
|
2020-06-24 19:25:46 +00:00
|
|
|
# additional index server which needs additional memory and disk
|
|
|
|
# space. It can be enabled later any time.
|
2020-06-21 18:13:33 +00:00
|
|
|
#
|
|
|
|
# Currently the SOLR search platform is supported.
|
2020-06-22 20:54:39 +00:00
|
|
|
enabled = false
|
2020-06-21 18:13:33 +00:00
|
|
|
|
|
|
|
# When re-creating the complete index via a REST call, this key
|
|
|
|
# is required. If left empty (the default), recreating the index
|
|
|
|
# is disabled.
|
|
|
|
#
|
|
|
|
# Example curl command:
|
|
|
|
# curl -XPOST http://localhost:7880/api/v1/open/fts/reIndexAll/test123
|
|
|
|
recreate-key = ""
|
|
|
|
|
|
|
|
# Configuration for the SOLR backend.
|
|
|
|
solr = {
|
2020-06-24 19:25:46 +00:00
|
|
|
# The URL to solr
|
2020-06-22 20:54:39 +00:00
|
|
|
url = "http://localhost:8983/solr/docspell"
|
2020-06-24 19:25:46 +00:00
|
|
|
# Used to tell solr when to commit the data
|
2020-06-21 18:13:33 +00:00
|
|
|
commit-within = 1000
|
2020-06-24 19:25:46 +00:00
|
|
|
# If true, logs request and response bodies
|
|
|
|
log-verbose = false
|
2020-06-24 20:55:11 +00:00
|
|
|
# The defType parameter to lucene that defines the parser to
|
|
|
|
# use. You might want to try "edismax" or look here:
|
|
|
|
# https://lucene.apache.org/solr/guide/8_4/query-syntax-and-parsing.html#query-syntax-and-parsing
|
|
|
|
def-type = "lucene"
|
|
|
|
# The default combiner for tokens. One of {AND, OR}.
|
|
|
|
q-op = "OR"
|
2020-06-21 18:13:33 +00:00
|
|
|
}
|
2020-06-16 22:24:23 +00:00
|
|
|
}
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
# Configuration for the backend.
|
|
|
|
backend {
|
2020-06-13 13:10:00 +00:00
|
|
|
# Enable or disable debugging for e-mail related functionality. This
|
|
|
|
# applies to both sending and receiving mails. For security reasons
|
|
|
|
# logging is not very extensive on authentication failures. Setting
|
|
|
|
# this to true, results in a lot of data printed to stdout.
|
|
|
|
mail-debug = false
|
2019-07-22 22:53:30 +00:00
|
|
|
|
|
|
|
# The database connection.
|
|
|
|
#
|
|
|
|
# By default a H2 file-based database is configured. You can
|
|
|
|
# provide a postgresql or mariadb connection here. When using H2
|
|
|
|
# use the PostgreSQL compatibility mode and AUTO_SERVER feature.
|
|
|
|
jdbc {
|
|
|
|
url = "jdbc:h2://"${java.io.tmpdir}"/docspell-demo.db;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE;AUTO_SERVER=TRUE"
|
|
|
|
user = "sa"
|
|
|
|
password = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
# Configuration for registering new users.
|
|
|
|
signup {
|
|
|
|
|
|
|
|
# The mode defines if new users can signup or not. It can have
|
|
|
|
# three values:
|
|
|
|
#
|
|
|
|
# - open: every new user can sign up
|
|
|
|
# - invite: new users can sign up only if they provide a correct
|
|
|
|
# invitation key. Invitation keys can be generated by the
|
|
|
|
# server.
|
|
|
|
# - closed: signing up is disabled.
|
|
|
|
mode = "open"
|
|
|
|
|
|
|
|
# If mode == 'invite', a password must be provided to generate
|
|
|
|
# invitation keys. It must not be empty.
|
|
|
|
new-invite-password = ""
|
|
|
|
|
|
|
|
# If mode == 'invite', this is the period an invitation token is
|
|
|
|
# considered valid.
|
|
|
|
invite-time = "3 days"
|
|
|
|
}
|
|
|
|
|
|
|
|
files {
|
2020-01-19 21:53:58 +00:00
|
|
|
# Defines the chunk size (in bytes) used to store the files.
|
|
|
|
# This will affect the memory footprint when uploading and
|
|
|
|
# downloading files. At most this amount is loaded into RAM for
|
|
|
|
# down- and uploading.
|
2019-07-22 22:53:30 +00:00
|
|
|
#
|
|
|
|
# It also defines the chunk size used for the blobs inside the
|
|
|
|
# database.
|
|
|
|
chunk-size = 524288
|
|
|
|
|
|
|
|
# The file content types that are considered valid. Docspell
|
|
|
|
# will only pass these files to processing. The processing code
|
|
|
|
# itself has also checks for which files are supported and which
|
2020-02-19 22:27:00 +00:00
|
|
|
# not. This affects the uploading part and can be used to
|
|
|
|
# restrict file types that should be handed over to processing.
|
|
|
|
# By default all files are allowed.
|
|
|
|
valid-mime-types = [ ]
|
2019-07-22 22:53:30 +00:00
|
|
|
}
|
|
|
|
}
|
2019-07-17 20:03:10 +00:00
|
|
|
}
|