mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
feat: add S3 configuration and update project structure
This commit is contained in:
parent
330c92a432
commit
8955fce368
14 changed files with 70 additions and 1 deletions
11
server/components/s3.ts
Normal file
11
server/components/s3.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { S3Client } from "bun";
|
||||
|
||||
const s3config = new S3Client({
|
||||
accessKeyId: process.env.S3_ACCESS_KEY,
|
||||
secretAccessKey: process.env.S3_SECRET_KEY,
|
||||
bucket: process.env.S3_BUCKETNAME,
|
||||
acl: "public-read",
|
||||
endpoint: process.env.S3_ENDPOINT,
|
||||
});
|
||||
|
||||
export default s3config;
|
Loading…
Add table
Add a link
Reference in a new issue