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
|
|
|
|
}
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
}
|
|
|
|
|
|
|
|
# Configuration for the backend.
|
|
|
|
backend {
|
|
|
|
|
|
|
|
# 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
|
|
|
|
# not. This affects the uploading part and is a first check to
|
|
|
|
# avoid that 'bad' files get into the system.
|
|
|
|
valid-mime-types = [ "application/pdf" ]
|
|
|
|
}
|
|
|
|
}
|
2019-07-17 20:03:10 +00:00
|
|
|
}
|