streamflix-api / src /shared /modules /upload /rustfs-storage /rustfs-storage.config.ts
Akshar2325
feat(upload): add rustfs storage integration
51c6e04
Raw
History Blame
337 Bytes
import { registerAs } from '@nestjs/config';
export default registerAs('rustfsStorage', () => ({
endpoint: process.env.RUSTFS_ENDPOINT,
accessKey: process.env.RUSTFS_ACCESS_KEY,
secretKey: process.env.RUSTFS_SECRET_KEY,
bucket: process.env.RUSTFS_BUCKET || 'streamflix',
region: process.env.RUSTFS_REGION || 'us-east-1',
}));