Files
pichunt/lib/s3.ts
T
2025-08-02 01:18:37 +02:00

17 lines
301 B
TypeScript

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