EverydayTech Platform - Developer Reference
Complete Source Code Documentation - All Applications
Loading...
Searching...
No Matches
WordPress DO Spaces Buckets Setup

๐Ÿ“ฆ Required Buckets

Create these 10 buckets in DigitalOcean Spaces (NYC3 region):

wordpress-performwritecom-content
wordpress-sfnm-content
wordpress-redheale-content
wordpress-path2ucom-content
wordpress-outdoor1-content
wordpress-murwillu-content
wordpress-murbahmowers-content
wordpress-laserxperts-content
wordpress-kandudeliveriesc-content
wordpress-corne582-content

๐Ÿ”ง Creation Methods

Option 1: DigitalOcean Web Console (Recommended)

  1. Go to https://cloud.digitalocean.com/spaces
  2. Click "Create Bucket" or "Create Space"
  3. Name: Enter bucket name (e.g., wordpress-performwritecom-content)
  4. Region: NYC3
  5. CDN: Enable (optional, for faster delivery)
  6. File Listing: Restrict File Listing (security)
  7. Click "Create Space"
  8. Repeat for all 10 buckets

Option 2: AWS CLI (S3-compatible)

# Install AWS CLI
sudo apt install awscli
# Configure for DO Spaces
aws configure set aws_access_key_id YOUR_SPACES_KEY
aws configure set aws_secret_access_key YOUR_SPACES_SECRET
aws configure set default.region us-east-1
# Create buckets
for site in performwritecom sfnm redheale path2ucom outdoor1 murwillu murbahmowers laserxperts kandudeliveriesc corne582; do
aws s3 mb s3://wordpress-${site}-content \
--endpoint-url https://nyc3.digitaloceanspaces.com \
--region nyc3
done

Option 3: cURL + DigitalOcean API

# Get your DO API token
DO_TOKEN="dop_v1_..." # Your DigitalOcean API token
# Note: DO Spaces uses AWS S3-compatible API
# Bucket creation requires Spaces access keys, not DO API token
# See Option 2 above

๐Ÿ”‘ Access Keys Setup

Current Shared Key

DO NOT USE in production - For testing only:

Create Separate Keys (REQUIRED for production)

  1. Go to https://cloud.digitalocean.com/account/api/spaces
  2. Click "Generate New Key"
  3. Name: wordpress-performwritecom-key
  4. Click "Generate Key"
  5. IMPORTANT: Save the secret key immediately (shown only once)
  6. Repeat for each site

Recommended Key Names

wordpress-performwritecom-key
wordpress-sfnm-key
wordpress-redheale-key
wordpress-path2ucom-key
wordpress-outdoor1-key
wordpress-murwillu-key
wordpress-murbahmowers-key
wordpress-laserxperts-key
wordpress-kandudeliveriesc-key
wordpress-corne582-key

๐Ÿ“ Environment Variables

After creating buckets and keys, update each App Platform app:

BUCKET_NAME=wordpress-performwritecom-content
BUCKET_ENDPOINT=nyc3.digitaloceanspaces.com
BUCKET_ACCESS_KEY=DO003....
BUCKET_SECRET_KEY=xxxxxx....

๐Ÿงช Testing

Test bucket access:

# Using s3cmd
s3cmd ls s3://wordpress-performwritecom-content/ \
--host=nyc3.digitaloceanspaces.com \
--host-bucket='%(bucket)s.nyc3.digitaloceanspaces.com' \
--access_key=DO003... \
--secret_key=xxxxx...
# Using AWS CLI
aws s3 ls s3://wordpress-performwritecom-content/ \
--endpoint-url https://nyc3.digitaloceanspaces.com

๐Ÿš€ Next Steps

  1. โœ… Create 10 buckets (see above)
  2. โฌœ Generate 10 separate access keys
  3. โฌœ Upload wp-content to each bucket
  4. โฌœ Update App Platform env vars
  5. โฌœ Redeploy all apps
  6. โฌœ Test sites load correctly

๐Ÿ“Š Monitoring

Check bucket usage:

doctl monitoring metrics bandwidth get_droplet_bandwidth \
--droplet-id YOUR_DROPLET_ID \
--start $(date -d '1 day ago' +%s) \
--end $(date +%s)

View bucket contents:

s3cmd ls s3://wordpress-performwritecom-content/wp-content/uploads/ \
--recursive --human-readable \
--host=nyc3.digitaloceanspaces.com