W n8n attention vm

This commit is contained in:
alma 2025-05-24 18:29:48 +02:00
parent 64172b0f0c
commit 5955953a52
2 changed files with 5 additions and 5 deletions

View File

@ -38,11 +38,11 @@ export async function GET(
const minioPath = filePath.startsWith('missions/') ? filePath : `missions/${filePath}`;
console.log('Full Minio path:', {
minioPath,
bucket: process.env.MINIO_AWS_S3_UPLOAD_BUCKET_NAME || 'missions'
bucket: 'missions'
});
const command = new GetObjectCommand({
Bucket: process.env.MINIO_AWS_S3_UPLOAD_BUCKET_NAME || 'missions',
Bucket: 'missions',
Key: minioPath,
});
@ -52,7 +52,7 @@ export async function GET(
console.error('File not found in Minio:', {
path: filePath,
minioPath,
bucket: process.env.MINIO_AWS_S3_UPLOAD_BUCKET_NAME || 'missions',
bucket: 'missions',
contentType: response.ContentType
});
return new NextResponse('File not found', { status: 404 });
@ -70,7 +70,7 @@ export async function GET(
error,
path: filePath,
minioPath,
bucket: process.env.MINIO_AWS_S3_UPLOAD_BUCKET_NAME || 'missions',
bucket: 'missions',
errorType: error instanceof NoSuchKey ? 'NoSuchKey' : 'Unknown'
});
if (error instanceof NoSuchKey) {

View File

@ -54,7 +54,7 @@ services:
- REDIS_URL=redis://:mySecretPassword@redis:6379
- MINIO_S3_UPLOAD_BUCKET_URL=http://minio:9000
- MINIO_AWS_REGION=us-east-1
- MINIO_AWS_S3_UPLOAD_BUCKET_NAME=pages
- MINIO_AWS_S3_UPLOAD_BUCKET_NAME=missions
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin