17 lines
301 B
TypeScript
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
|
|
});
|