Skip to content

Change AWS Region for Minio backend #2386

@da-avidid

Description

@da-avidid

Deployment Type: Docker Compose
Images: docspell/restserver:v0.40.0, docspell/joex:v0.40.0, docspell/dsc:v0.10.0, postgres:16.0, solr:9

Issue:
I am getting the following error when I try to use the Minio backend to connect to an S3 bucket.

docspell-joex        | java.util.concurrent.CompletionException: error occurred
docspell-joex        | ErrorResponse(code = AuthorizationHeaderMalformed, message = The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-west-2', bucketName = null, objectName = null, resource = null, requestId = <REDACTED>, hostId = <REDACTED>)

I have been able to successfully perform actions from the CLI with the following ENV VARS set

AWS_ACCESS_KEY_ID=<REDACTED>
AWS_SECRET_ACCESS_KEY=<REDACTED>
AWS_DEFAULT_REGION=us-west-2

How can I set the AWS_DEFAULT_REGION using the for the Minio Backend?

I have Tried:

  1. Injecting the ENV VAR directly into the container
  2. Looking for clues in the Binny Source here https://github.com/eikek/binny/tree/master/modules/minio/src/main/scala/binny/minio
  3. Reading through the Default Config Docs here https://docspell.org/docs/configure/defaults/
  4. Searching the github issues

Any help would be appreciated : ^ )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions