Skip to content

imageUploadType use s3 with docker ,can't use #1572

@FunTW

Description

@FunTW

Install 2.2.0 with docker .
When imageUploadType set to s3 .
Upload image have error

Error response received from instance metadata service codimd

I find a way can fix it

  • /lib/imageRouter/s3.js
const credentials = {
  accessKeyId: config.s3.accessKeyId,
  secretAccessKey: config.s3.secretAccessKey,
}

const s3 = new S3Client({
  credentials,
  region: config.s3.region
})

reference aws/aws-sdk-js-v3#1396

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions