LouiseMcMahon / nodebb-plugin-s3-uploads

A plugin for NodeBB to take file uploads and store them on S3
MIT License
17 stars 23 forks source link

Issues uploading to s3 #21

Closed cjinfantino closed 7 years ago

cjinfantino commented 7 years ago

I am getting the following error when trying to add an image to a post:

"nodebb-plugin-s3-uploads-updated :: Missing credentials in config"

I setup the bucket name and path in the DB section and created and IAM user with permission to the bucket in AWS.

I'm not sure exactly where I setup the credentials for the user in the plugin.

LouiseMcMahon commented 7 years ago

You can either set them by environment variables or in the settings which you will find in the nav bar.

cjinfantino commented 7 years ago

What "nav bar". Are you referring to the settings->plugin->s3 configs? The only options I see to input are to store in the DB.

And if I used ENV variables how would you make them persist? And doesn't that defeat the purpose because it's stored in plain text somewhere.

cjinfantino commented 7 years ago

I was able to get it to work via env variables.

I noticed that all the uploads are getting public open/download permissions. I was thinking that the plugin would be querying aws to view the file via the access_id setup.

But it appears the file needs to be public. Is this the case?

LouiseMcMahon commented 7 years ago

Yes it just hotlinks the files

LouiseMcMahon commented 7 years ago

also if you scroll down in that settings page area you should see Credentials thats where you put the aws key