Amazon S3
Amazon S3 is Amazon Web Services' file storage. Easy Chat Room can store new uploads, such as images, videos, voice notes, files and avatars, in an S3 bucket instead of your server. Read Storage and uploads first.
Prepare the bucket
- In the AWS console, create a bucket, for example
mysite-chat, in the region you want, for exampleeu-west-1. - Allow public reading of the files. Under Permissions, turn off Block all public access for this bucket and add a bucket policy that allows
s3:GetObjectonarn:aws:s3:::mysite-chat/*for everyone. - In IAM, create a user for Easy Chat Room with permission to put objects in this bucket (
s3:PutObject), and create an access key for it.
Set up in Easy Chat Room
Go to Settings > Cloud Storage:
| Field | Value |
|---|---|
| Enable Cloud Storage | Yes |
| Cloud Storage Type | AWS S3 |
| Cloud Storage Endpoint | https://s3.eu-west-1.amazonaws.com (with your region) |
| Cloud Storage Region | eu-west-1 |
| Cloud Storage Access Key and Cloud Storage Secret Key | The IAM user's access key |
| Cloud Storage Bucket Name | mysite-chat |
| Cloud Storage Access URL | https://s3.eu-west-1.amazonaws.com/mysite-chat, without a slash at the end |
| Cloud Storage SSL Verification | Yes |
Click Update.
Before you turn it on, copy your current media folder (components/com_easychatroom/media) to the bucket with the same folders. Easy Chat Room connects in path style, so the access URL has the form https://<endpoint>/<bucket>.
Costs and privacy
Amazon bills storage and downloads. Every image a member views is downloaded from S3. Your members' files are stored with Amazon: mention it in your privacy policy.