Add image upload to s3
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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
|
||||
});
|
||||
Reference in New Issue
Block a user