W n8n attention vm
This commit is contained in:
parent
64172b0f0c
commit
5955953a52
@ -38,11 +38,11 @@ export async function GET(
|
|||||||
const minioPath = filePath.startsWith('missions/') ? filePath : `missions/${filePath}`;
|
const minioPath = filePath.startsWith('missions/') ? filePath : `missions/${filePath}`;
|
||||||
console.log('Full Minio path:', {
|
console.log('Full Minio path:', {
|
||||||
minioPath,
|
minioPath,
|
||||||
bucket: process.env.MINIO_AWS_S3_UPLOAD_BUCKET_NAME || 'missions'
|
bucket: 'missions'
|
||||||
});
|
});
|
||||||
|
|
||||||
const command = new GetObjectCommand({
|
const command = new GetObjectCommand({
|
||||||
Bucket: process.env.MINIO_AWS_S3_UPLOAD_BUCKET_NAME || 'missions',
|
Bucket: 'missions',
|
||||||
Key: minioPath,
|
Key: minioPath,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ export async function GET(
|
|||||||
console.error('File not found in Minio:', {
|
console.error('File not found in Minio:', {
|
||||||
path: filePath,
|
path: filePath,
|
||||||
minioPath,
|
minioPath,
|
||||||
bucket: process.env.MINIO_AWS_S3_UPLOAD_BUCKET_NAME || 'missions',
|
bucket: 'missions',
|
||||||
contentType: response.ContentType
|
contentType: response.ContentType
|
||||||
});
|
});
|
||||||
return new NextResponse('File not found', { status: 404 });
|
return new NextResponse('File not found', { status: 404 });
|
||||||
@ -70,7 +70,7 @@ export async function GET(
|
|||||||
error,
|
error,
|
||||||
path: filePath,
|
path: filePath,
|
||||||
minioPath,
|
minioPath,
|
||||||
bucket: process.env.MINIO_AWS_S3_UPLOAD_BUCKET_NAME || 'missions',
|
bucket: 'missions',
|
||||||
errorType: error instanceof NoSuchKey ? 'NoSuchKey' : 'Unknown'
|
errorType: error instanceof NoSuchKey ? 'NoSuchKey' : 'Unknown'
|
||||||
});
|
});
|
||||||
if (error instanceof NoSuchKey) {
|
if (error instanceof NoSuchKey) {
|
||||||
|
|||||||
@ -54,7 +54,7 @@ services:
|
|||||||
- REDIS_URL=redis://:mySecretPassword@redis:6379
|
- REDIS_URL=redis://:mySecretPassword@redis:6379
|
||||||
- MINIO_S3_UPLOAD_BUCKET_URL=http://minio:9000
|
- MINIO_S3_UPLOAD_BUCKET_URL=http://minio:9000
|
||||||
- MINIO_AWS_REGION=us-east-1
|
- 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_ACCESS_KEY=minioadmin
|
||||||
- MINIO_SECRET_KEY=minioadmin
|
- MINIO_SECRET_KEY=minioadmin
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user