Allow to configure a region for s3 backend

Closes: #2386
This commit is contained in:
eikek
2023-11-17 20:53:27 +01:00
parent bc9a483143
commit 81d8b6c9c1
10 changed files with 43 additions and 11 deletions

View File

@ -493,6 +493,7 @@ docspell.server {
access-key = "username"
secret-key = "password"
bucket = "docspell"
region = ""
}
}
}

View File

@ -113,7 +113,9 @@ object ConfigFile {
}
def filesValidate: Validation[Config] =
Validation(cfg => cfg.backend.files.validate.map(_ => cfg))
Validation(cfg =>
cfg.backend.files.validate.map(f => cfg.copy(backend = cfg.backend.copy(files = f)))
)
def postgresFtsValidate: Validation[Config] =
Validation.failWhen(