Add mail-debug flag to rest-server

It has been added to the joex application, but it should be possible
to debug mail problems on both apps.
This commit is contained in:
Eike Kettner
2020-06-13 15:10:00 +02:00
parent fb8c97f4f0
commit 617487f5b3
4 changed files with 40 additions and 17 deletions

View File

@ -41,6 +41,7 @@ let
session-valid = "5 minutes";
};
backend = {
mail-debug = false;
jdbc = {
url = "jdbc:h2:///tmp/docspell-demo.db;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE;AUTO_SERVER=TRUE";
user = "sa";
@ -260,6 +261,16 @@ in {
backend = mkOption {
type = types.submodule({
options = {
mail-debug = mkOption {
type = types.bool;
default = defaults.backend.mail-debug;
description = ''
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.
'';
};
jdbc = mkOption {
type = types.submodule ({
options = {