Files
pichunt/lib/s3.ts
T
2025-08-02 00:58:40 +02:00

14 lines
285 B
TypeScript

import { Client } from 'minio';
// TODO: add docker secret parsing
export const { s3Bucket, s3Host, s3AccessKey, s3SecretKey } =
useRuntimeConfig();
export const minioClient = new Client({
endPoint: s3Host,
useSSL: true,
accessKey: s3AccessKey,
secretKey: s3SecretKey
});