Local storage works for testing, but for production emails with images, cloud storage is a must. It’s faster, more reliable, and offloads work from your server.

Setup Options

Maillayer supports any S3-compatible storage. Two solid options:

🔹 DigitalOcean Spaces

  1. Create a Space and API keys
  2. Add these to project via coolify dashboard in Envirement Variables:
STORAGE_PROVIDER=digitalocean
STORAGE_ENDPOINT=https://sgp1.digitaloceanspaces.com
STORAGE_ACCESS_KEY=your_key
STORAGE_SECRET_KEY=your_secret
STORAGE_BUCKET=maillayer-cdn
STORAGE_PUBLIC_URL=https://maillayer-cdn.sgp1.digitaloceanspaces.com

🔹 Cloudflare R2

  1. Create a bucket + API token
  2. Add these to project via coolify dashboard in Envirement Variables:
STORAGE_PROVIDER=cloudflare
STORAGE_ENDPOINT=https://your-id.r2.cloudflarestorage.com
STORAGE_ACCESS_KEY=your_key
STORAGE_SECRET_KEY=your_secret
STORAGE_BUCKET=maillayer
STORAGE_PUBLIC_URL=https://your-domain.com

This all.