Generate random server secret if not provided from config

This commit is contained in:
eikek
2021-10-25 00:21:03 +02:00
parent 4e5924d796
commit 94b26a1721
2 changed files with 22 additions and 4 deletions

View File

@ -47,8 +47,9 @@ docspell.server {
# 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
# hex:, respectively).
server-secret = "hex:caffee"
# hex:, respectively). If empty, a random secret is generated.
# Example: b64:YRx77QujCGkHSvll0TVEmtTaw3Z5eXr+nWMsEJowgKg=
server-secret = ""
# How long an authentication token is valid. The web application
# will get a new one periodically.