mirror of
https://github.com/soconnor0919/hristudio.git
synced 2026-03-23 19:27:51 -04:00
fix: standardize MinIO bucket name to hristudio-data
- Update docker-compose to create hristudio-data bucket instead of hristudio - Fix files.ts, storage.ts, trials.ts, lib/storage/minio.ts to use consistent bucket name - All now default to hristudio-data matching compose bucket creation
This commit is contained in:
@@ -36,8 +36,8 @@ services:
|
||||
entrypoint: >
|
||||
/bin/sh -c "
|
||||
/usr/bin/mc alias set myminio http://minio:9000 minioadmin minioadmin;
|
||||
/usr/bin/mc mb myminio/hristudio;
|
||||
/usr/bin/mc anonymous set public myminio/hristudio;
|
||||
/usr/bin/mc mb myminio/hristudio-data;
|
||||
/usr/bin/mc anonymous set public myminio/hristudio-data;
|
||||
exit 0;
|
||||
"
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ const s3Client = new S3Client({
|
||||
forcePathStyle: true, // Required for MinIO
|
||||
});
|
||||
|
||||
const BUCKET_NAME = env.MINIO_BUCKET_NAME ?? "hristudio";
|
||||
const BUCKET_NAME = env.MINIO_BUCKET_NAME ?? "hristudio-data";
|
||||
const PRESIGNED_URL_EXPIRY = 3600; // 1 hour in seconds
|
||||
|
||||
export interface UploadParams {
|
||||
|
||||
@@ -18,7 +18,7 @@ const minioClient = new Minio.Client({
|
||||
secretKey: env.MINIO_SECRET_KEY ?? "minioadmin",
|
||||
});
|
||||
|
||||
const BUCKET_NAME = env.MINIO_BUCKET_NAME ?? "hristudio-assets";
|
||||
const BUCKET_NAME = env.MINIO_BUCKET_NAME ?? "hristudio";
|
||||
|
||||
// Ensure bucket exists on startup (best effort)
|
||||
const ensureBucket = async () => {
|
||||
|
||||
Reference in New Issue
Block a user