serverpod_cloud_storage_rustfs library
RustFS S3-compatible cloud storage integration for Serverpod.
This package provides RustFsCloudStorage for storing files in a RustFS instance.
RustFS uses a multipart POST upload mechanism, compatible with the S3 API.
Quick Start
import 'package:serverpod_cloud_storage_rustfs/serverpod_cloud_storage_rustfs.dart';
pod.addCloudStorage(RustFsCloudStorage(
serverpod: pod,
storageId: 'public',
public: true,
// bucket defaults to 'serverpod' if not set
));
Configuration
Set credentials via environment variables:
SERVERPOD_RUSTFS_ACCESS_KEYSERVERPOD_RUSTFS_SECRET_KEY
Or in config/passwords.yaml:
shared:
rustfsAccessKey: your_access_key
rustfsSecretKey: your_secret_key
Classes
- RustFsCloudStorage
- RustFS cloud storage implementation for Serverpod.
- RustFsEndpointConfig
- RustFS endpoint configuration.