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?


Supported Providers

ProviderStarting PriceBest For
AWS S3$0.023/GBEnterprise, AWS ecosystem users
Google Cloud Storage$0.020/GBGoogle ecosystem users
Wasabi$0.0069/GBCost-conscious, no egress fees
Backblaze B2$0.006/GBBudget-friendly, simple pricing

AWS S3 Setup

Step 1: Create S3 Bucket

  1. Log in to AWS Console
  2. Navigate to S3
  3. Click "Create bucket"
  4. Enter a unique bucket name
  5. Select a region close to your users
  6. Uncheck "Block all public access" (for public file access)
  7. Create the bucket

Step 2: Configure Bucket Policy

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

  1. Navigate to IAM > Users
  2. Click "Add users"
  3. Enter a username
  4. Select "Access key - Programmatic access"
  5. Attach the "AmazonS3FullAccess" policy (or create a custom policy)
  6. Save the Access Key ID and Secret Access Key

Configuration

SettingValue
Cloud Storage TypeAWS S3
EndpointLeave empty for AWS
Regione.g., us-east-1
Access KeyYour IAM Access Key ID
Secret KeyYour IAM Secret Access Key
Bucket NameYour bucket name
Access URLhttps://BUCKET.s3.REGION.amazonaws.com

Wasabi Setup

Wasabi is an S3-compatible service with no egress fees.

Step 1: Create Bucket

  1. Log in to Wasabi console
  2. Create a new bucket
  3. Note your bucket region

Step 2: Create Access Keys

  1. Go to Access Keys
  2. Create a new access key
  3. Save the Access Key and Secret Key

Configuration

SettingValue
Cloud Storage TypeWasabi
Endpointhttps://s3.REGION.wasabisys.com
Regione.g., us-west-1
Access KeyYour Wasabi Access Key
Secret KeyYour Wasabi Secret Key
Bucket NameYour bucket name
Access URLhttps://s3.REGION.wasabisys.com/BUCKET

Backblaze B2 Setup

Backblaze B2 offers affordable storage with S3-compatible API.

Step 1: Create Bucket

  1. Log in to Backblaze
  2. Go to B2 Cloud Storage > Buckets
  3. Create a new bucket (set to Public)
  4. Note the bucket name and endpoint

Step 2: Create Application Key

  1. Go to App Keys
  2. Create a new application key
  3. Save the keyID and applicationKey

Configuration

SettingValue
Cloud Storage TypeBackblaze
Endpointhttps://s3.REGION.backblazeb2.com
Regione.g., us-west-004
Access KeyYour keyID
Secret KeyYour applicationKey
Bucket NameYour bucket name
Access URLhttps://BUCKET.s3.REGION.backblazeb2.com

Google Cloud Storage Setup

  1. Go to Google Cloud Console
  2. Create or select a project
  3. Navigate to Cloud Storage > Buckets
  4. Create a bucket
  5. Enable interoperability (for S3-compatible access)
  6. Generate HMAC keys in Settings > Interoperability
SettingValue
Cloud Storage TypeGoogle Cloud Storage
Endpointhttps://storage.googleapis.com
Regionauto
Access KeyHMAC Access Key
Secret KeyHMAC Secret
Bucket NameYour bucket name
Access URLhttps://storage.googleapis.com/BUCKET

All Settings Reference

SettingDescription
Enable Cloud StorageTurn on cloud storage for uploads
Cloud Storage TypeSelect your provider
Cloud Storage EndpointAPI endpoint URL
Cloud Storage RegionStorage region
Cloud Storage Access KeyAPI access key
Cloud Storage Secret KeyAPI secret key
Cloud Storage Bucket NameYour bucket name
Cloud Storage Access URLPublic URL for files (no trailing slash)
Cloud Storage SSL VerificationEnable/disable SSL certificate verification

Troubleshooting

IssueSolution
Upload failsCheck access key and secret are correct
Access denied errorsVerify IAM permissions include write access
Files not displayingCheck bucket policy allows public read
Wrong region errorEnsure region matches bucket location
SSL errorsTry disabling SSL verification temporarily
Endpoint not foundCheck endpoint URL format for your provider