초기 PM 소스 전체 업로드
This commit is contained in:
14
config/cloudClient.js
Normal file
14
config/cloudClient.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const { S3Client } = require('@aws-sdk/client-s3');
|
||||
require('dotenv').config();
|
||||
|
||||
// CloudFlare R2
|
||||
const cloudClient = new S3Client({
|
||||
region: 'auto',
|
||||
endpoint: process.env.R2_ENDPOINT,
|
||||
credentials: {
|
||||
accessKeyId: process.env.R2_ACCESSKEYID,
|
||||
secretAccessKey: process.env.R2_SECRETACCESSKEY,
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = cloudClient;
|
||||
Reference in New Issue
Block a user