laosb / ghos3

A modernized AWS S3 storage adapter for Ghost.
Other
31 stars 12 forks source link

Configuration issue #19

Closed nagaame closed 4 months ago

nagaame commented 4 months ago

Hello, I used your library on my Ghost blog instance, but when using cloudflare R2 storage, my configuration kept failing and couldn't connect. Could you please help me improve my configuration?

// ......

"storage": {
    "active": "s3",
    "media": {
      "adapter": "s3"
    },
    "files": {
      "adapter": "s3"
    },
    "s3": {
      "accessKeyId": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "secretAccessKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "region": "wnam",
      "bucket": "storage",
      "assetHost": "https://storage.domain.com",
      "pathPrefix": "",
      "endpoint": "https://dcexxxxxxxxxxxxxxxxxxxxxxxxxxx.r2.cloudflarestorage.com",
      "forcePathStyle": true,
      "acl": ""
    }
  }

I have placed all my folders in the root directory.

image
laosb commented 4 months ago

According to R2 S3 compatibility doc, you should specify region = auto.