Cloud Storage Setup
Store user uploads (images, files, audio) on cloud storage instead of your local server. ChatNet supports AWS S3, Google Cloud Storage, Wasabi, Backblaze B2, and other S3-compatible providers. Cloud storage improves scalability, reduces server load, and enables faster content delivery.
Navigate to General Settings > Cloud Storage
Why Use Cloud Storage?
- Scalability: Handle unlimited uploads without filling server disk
- Performance: CDN delivery for faster file access globally
- Reliability: Built-in redundancy and backup
- Cost: Often cheaper than expanding server storage
- Migration: Easier to move between hosting providers
Supported Providers
| Provider | Starting Price | Best For |
|---|
| AWS S3 | $0.023/GB | Enterprise, AWS ecosystem users |
| Google Cloud Storage | $0.020/GB | Google ecosystem users |
| Wasabi | $0.0069/GB | Cost-conscious, no egress fees |
| Backblaze B2 | $0.006/GB | Budget-friendly, simple pricing |
AWS S3 Setup
Step 1: Create S3 Bucket
- Log in to AWS Console
- Navigate to S3
- Click "Create bucket"
- Enter a unique bucket name
- Select a region close to your users
- Uncheck "Block all public access" (for public file access)
- Create the bucket
Add this bucket policy to allow public read access:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::YOUR-BUCKET-NAME/*" } ] }
Step 3: Create IAM User
- Navigate to IAM > Users
- Click "Add users"
- Enter a username
- Select "Access key - Programmatic access"
- Attach the "AmazonS3FullAccess" policy (or create a custom policy)
- Save the Access Key ID and Secret Access Key
Configuration
| Setting | Value |
|---|
| Cloud Storage Type | AWS S3 |
| Endpoint | Leave empty for AWS |
| Region | e.g., us-east-1 |
| Access Key | Your IAM Access Key ID |
| Secret Key | Your IAM Secret Access Key |
| Bucket Name | Your bucket name |
| Access URL | https://BUCKET.s3.REGION.amazonaws.com |
Wasabi Setup
Wasabi is an S3-compatible service with no egress fees.
Step 1: Create Bucket
- Log in to Wasabi console
- Create a new bucket
- Note your bucket region
Step 2: Create Access Keys
- Go to Access Keys
- Create a new access key
- Save the Access Key and Secret Key
Configuration
| Setting | Value |
|---|
| Cloud Storage Type | Wasabi |
| Endpoint | https://s3.REGION.wasabisys.com |
| Region | e.g., us-west-1 |
| Access Key | Your Wasabi Access Key |
| Secret Key | Your Wasabi Secret Key |
| Bucket Name | Your bucket name |
| Access URL | https://s3.REGION.wasabisys.com/BUCKET |
Backblaze B2 Setup
Backblaze B2 offers affordable storage with S3-compatible API.
Step 1: Create Bucket
- Log in to Backblaze
- Go to B2 Cloud Storage > Buckets
- Create a new bucket (set to Public)
- Note the bucket name and endpoint
Step 2: Create Application Key
- Go to App Keys
- Create a new application key
- Save the keyID and applicationKey
Configuration
| Setting | Value |
|---|
| Cloud Storage Type | Backblaze |
| Endpoint | https://s3.REGION.backblazeb2.com |
| Region | e.g., us-west-004 |
| Access Key | Your keyID |
| Secret Key | Your applicationKey |
| Bucket Name | Your bucket name |
| Access URL | https://BUCKET.s3.REGION.backblazeb2.com |
Google Cloud Storage Setup
- Go to Google Cloud Console
- Create or select a project
- Navigate to Cloud Storage > Buckets
- Create a bucket
- Enable interoperability (for S3-compatible access)
- Generate HMAC keys in Settings > Interoperability
| Setting | Value |
|---|
| Cloud Storage Type | Google Cloud Storage |
| Endpoint | https://storage.googleapis.com |
| Region | auto |
| Access Key | HMAC Access Key |
| Secret Key | HMAC Secret |
| Bucket Name | Your bucket name |
| Access URL | https://storage.googleapis.com/BUCKET |
All Settings Reference
| Setting | Description |
|---|
| Enable Cloud Storage | Turn on cloud storage for uploads |
| Cloud Storage Type | Select your provider |
| Cloud Storage Endpoint | API endpoint URL |
| Cloud Storage Region | Storage region |
| Cloud Storage Access Key | API access key |
| Cloud Storage Secret Key | API secret key |
| Cloud Storage Bucket Name | Your bucket name |
| Cloud Storage Access URL | Public URL for files (no trailing slash) |
| Cloud Storage SSL Verification | Enable/disable SSL certificate verification |
Troubleshooting
| Issue | Solution |
|---|
| Upload fails | Check access key and secret are correct |
| Access denied errors | Verify IAM permissions include write access |
| Files not displaying | Check bucket policy allows public read |
| Wrong region error | Ensure region matches bucket location |
| SSL errors | Try disabling SSL verification temporarily |
| Endpoint not found | Check endpoint URL format for your provider |