W n8n attention vm
This commit is contained in:
parent
5e7def4991
commit
86b824bdd5
@ -6,11 +6,11 @@ import { NoSuchKey } from '@aws-sdk/client-s3';
|
||||
|
||||
// Initialize S3 client
|
||||
const s3Client = new S3Client({
|
||||
region: process.env.MINIO_AWS_REGION,
|
||||
endpoint: process.env.MINIO_S3_UPLOAD_BUCKET_URL,
|
||||
region: 'us-east-1',
|
||||
endpoint: 'https://dome-api.slm-lab.net',
|
||||
credentials: {
|
||||
accessKeyId: process.env.MINIO_ACCESS_KEY || '',
|
||||
secretAccessKey: process.env.MINIO_SECRET_KEY || ''
|
||||
accessKeyId: '4aBT4CMb7JIMMyUtp4Pl',
|
||||
secretAccessKey: 'HGn39XhCIlqOjmDVzRK9MED2Fci2rYvDDgbLFElg'
|
||||
},
|
||||
forcePathStyle: true // Required for MinIO
|
||||
});
|
||||
@ -39,7 +39,7 @@ export async function GET(
|
||||
console.log('Full Minio path:', {
|
||||
minioPath,
|
||||
bucket: 'missions',
|
||||
endpoint: process.env.MINIO_S3_UPLOAD_BUCKET_URL
|
||||
endpoint: 'https://dome-api.slm-lab.net'
|
||||
});
|
||||
|
||||
const command = new GetObjectCommand({
|
||||
@ -72,7 +72,7 @@ export async function GET(
|
||||
path: filePath,
|
||||
minioPath,
|
||||
bucket: 'missions',
|
||||
endpoint: process.env.MINIO_S3_UPLOAD_BUCKET_URL,
|
||||
endpoint: 'https://dome-api.slm-lab.net',
|
||||
errorType: error instanceof NoSuchKey ? 'NoSuchKey' : 'Unknown'
|
||||
});
|
||||
if (error instanceof NoSuchKey) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user