Add image upload to s3

This commit is contained in:
2025-08-02 00:58:40 +02:00
parent 624bb7e124
commit 7d974a857c
8 changed files with 296 additions and 10 deletions
+13
View File
@@ -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
});