I’m trying to install the following AWS S3 plugin for ghost GitHub - spanishdict/ghost-s3-compat: Read and write images from S3 in the Ghost blogging platfrom. I’m using the latest version of ghost. I added to the following to config.production.json
"storage": {
"active": "ghost-s3",
"ghost-s3": {
"accessKeyId": "****",
"secretAccessKey": "****",
"bucket": "test-bucket",
"region": "us-west-2"
}
},
under content/storage there is directory called ghost-s3-compat as directed by the instructions.
then I get the following error:
Unable to find storage adapter ghost-s3 in ,/var/lib/ghost/content/adapters/,/var/lib/ghost/versions/3.41.5/core/server/adapters/.
Okay, not sure why it’s not finding it but fine, let’s install it as instructed, I’m putting the library now in both content/storage and content/adapters/
ghost_1 | 'node_modules/ghost-s3-compat/.jshintrc' -> 'content/storage/ghost-s3-compat/ghost-s3-compat/.jshintrc'
ghost_1 | 'node_modules/ghost-s3-compat/.npmignore' -> 'content/storage/ghost-s3-compat/ghost-s3-compat/.npmignore'
ghost_1 | 'node_modules/ghost-s3-compat/CHANGELOG.md' -> 'content/storage/ghost-s3-compat/ghost-s3-compat/CHANGELOG.md'
ghost_1 | 'node_modules/ghost-s3-compat/LICENSE' -> 'content/storage/ghost-s3-compat/ghost-s3-compat/LICENSE'
ghost_1 | 'node_modules/ghost-s3-compat/README.md' -> 'content/storage/ghost-s3-compat/ghost-s3-compat/README.md'
ghost_1 | 'node_modules/ghost-s3-compat/index.js' -> 'content/storage/ghost-s3-compat/ghost-s3-compat/index.js'
ghost_1 | 'node_modules/ghost-s3-compat/package.json' -> 'content/storage/ghost-s3-compat/ghost-s3-compat/package.json'
ghost_1 | 'node_modules/ghost-s3-compat' -> 'content/adapters/ghost-s3-compat'
ghost_1 | 'node_modules/ghost-s3-compat/.jshintrc' -> 'content/adapters/ghost-s3-compat/.jshintrc'
ghost_1 | 'node_modules/ghost-s3-compat/.npmignore' -> 'content/adapters/ghost-s3-compat/.npmignore'
ghost_1 | 'node_modules/ghost-s3-compat/CHANGELOG.md' -> 'content/adapters/ghost-s3-compat/CHANGELOG.md'
ghost_1 | 'node_modules/ghost-s3-compat/LICENSE' -> 'content/adapters/ghost-s3-compat/LICENSE'
ghost_1 | 'node_modules/ghost-s3-compat/README.md' -> 'content/adapters/ghost-s3-compat/README.md'
ghost_1 | 'node_modules/ghost-s3-compat/index.js' -> 'content/adapters/ghost-s3-compat/index.js'
ghost_1 | 'node_modules/ghost-s3-compat/package.json' -> 'content/adapters/ghost-s3-compat/package.json'
I also tried to configure the app via ENV variables instead.
storage__active=ghost-s3
storage__ghost-s3__accessKeyId=
storage__ghost-s3__secretAccessKey=
storage__ghost-s3__region=us-west-2
storage__ghost-s3__bucket=testing-bucket
Neither of them worked.
On the other hand if I try to use the GCS plugin. I installed the plugin to the same location and it works fine. I feel like I’m missing something.
Any help is appreciated.
Also, doing this on the docker image if that makes any difference on the answer.