Set STORAGE_BACKEND to choose where files are stored.
Memory
STORAGE_BACKEND=memory # default
In-memory and ephemeral — files are lost on restart. Good for development and testing.
Local Disk
STORAGE_BACKEND=local
LOCAL_STORAGE_DIR=./storage
Files are written to disk. Make sure the directory exists and is writable. Use a persistent volume in Docker.
Google Cloud Storage
STORAGE_BACKEND=gcs
GCS_BUCKET=my-stashy-bucket
Uses Application Default Credentials. In GCE/Cloud Run, this works automatically. Locally, run:
gcloud auth application-default login
For production, use local or gcs. The memory backend is only for development.