Website tweaks

This commit is contained in:
Eike Kettner
2020-07-30 22:27:10 +02:00
parent 9af02cd90b
commit 8f6202743f
26 changed files with 124 additions and 69 deletions

View File

@ -4,6 +4,8 @@ description = "A script to watch a directory for new files and upload them to do
weight = 20
+++
# Introduction
The `consumerdir.sh` is a bash script that works in two modes:
- Go through all files in given directories (recursively, if `-r` is
@ -90,7 +92,7 @@ about duplicates. This allows to keep your files organized using the
file-system and have them mirrored into docspell as well.
## Systemd
# Systemd
The script can be used with systemd to run as a service. This is an
example unit file:
@ -112,7 +114,7 @@ an existing user `someuser` that is used to run this service. The url
url as described [here](@/docs/webapp/uploading.md#anonymous-upload).
## Docker
# Docker
The provided docker image runs this script to watch a single
directory, `./docs` in current directory, for new files. If a new file

View File

@ -4,6 +4,8 @@ description = "A script to quickly upload files from the command line."
weight = 10
+++
# Introduction
A bash script to quickly upload files from the command line. It reads
a configuration file containing the URLs to upload to. Then each file
given to the script will be uploaded to al URLs in the config.
@ -25,7 +27,7 @@ The key must start with `url`. The urls should be [anonymous upload
urls](@/docs/webapp/uploading.md#anonymous-upload).
## Usage
# Usage
- The `-c` option allows to specifiy a different config file.
- The `-h` option shows a help overview.

View File

@ -16,7 +16,7 @@ provide a minimal setup, you might want to add tls and spam protection
when opening it to the public.
## What you need
# What you need
You need to own a domain and add the appropriate MX records to point
to your server. In this document, the domain `test.org` is used.
@ -25,14 +25,14 @@ You need to enable the [integration
endpoint](@/docs/webapp/uploading.md#integration-endpoint) in the
docspell configuration.
## Exim
# Exim
[Exim](http://exim.org/) is a popular smtp server (message transfer
agent). It is used here only because of previous knowledge, but same
can be achieved with other MTAs.
## The Config File
# The Config File
Here is the example config file for exim:
@ -83,7 +83,7 @@ notes about the used options (see `man curl`):
`somename`.
## Install with Docker
# Install with Docker
Go into the `tools/exim` directory and build the docker image:
@ -116,7 +116,7 @@ docker-compose up
```
## Test Run
# Test Run
Now it is possible to send mails to this MTA which will be immediatly
uploaded to docspell for the collective corresponding to the