mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-18 18:51:32 +10:00
feat(s3): implement non-ephemeral storage through S3/DO Spaces
This commit is contained in:
10
server/src/config/storage.config.ts
Normal file
10
server/src/config/storage.config.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { registerAs } from '@nestjs/config';
|
||||
|
||||
export default registerAs('storage', () => ({
|
||||
bucket: process.env.STORAGE_BUCKET,
|
||||
region: process.env.STORAGE_REGION,
|
||||
endpoint: process.env.STORAGE_ENDPOINT,
|
||||
urlPrefix: process.env.STORAGE_URL_PREFIX,
|
||||
accessKey: process.env.STORAGE_ACCESS_KEY,
|
||||
secretKey: process.env.STORAGE_SECRET_KEY,
|
||||
}));
|
||||
Reference in New Issue
Block a user