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
|
// Initialize S3 client
|
||||||
const s3Client = new S3Client({
|
const s3Client = new S3Client({
|
||||||
region: process.env.MINIO_AWS_REGION,
|
region: 'us-east-1',
|
||||||
endpoint: process.env.MINIO_S3_UPLOAD_BUCKET_URL,
|
endpoint: 'https://dome-api.slm-lab.net',
|
||||||
credentials: {
|
credentials: {
|
||||||
accessKeyId: process.env.MINIO_ACCESS_KEY || '',
|
accessKeyId: '4aBT4CMb7JIMMyUtp4Pl',
|
||||||
secretAccessKey: process.env.MINIO_SECRET_KEY || ''
|
secretAccessKey: 'HGn39XhCIlqOjmDVzRK9MED2Fci2rYvDDgbLFElg'
|
||||||
},
|
},
|
||||||
forcePathStyle: true // Required for MinIO
|
forcePathStyle: true // Required for MinIO
|
||||||
});
|
});
|
||||||
@ -39,7 +39,7 @@ export async function GET(
|
|||||||
console.log('Full Minio path:', {
|
console.log('Full Minio path:', {
|
||||||
minioPath,
|
minioPath,
|
||||||
bucket: 'missions',
|
bucket: 'missions',
|
||||||
endpoint: process.env.MINIO_S3_UPLOAD_BUCKET_URL
|
endpoint: 'https://dome-api.slm-lab.net'
|
||||||
});
|
});
|
||||||
|
|
||||||
const command = new GetObjectCommand({
|
const command = new GetObjectCommand({
|
||||||
@ -72,7 +72,7 @@ export async function GET(
|
|||||||
path: filePath,
|
path: filePath,
|
||||||
minioPath,
|
minioPath,
|
||||||
bucket: 'missions',
|
bucket: 'missions',
|
||||||
endpoint: process.env.MINIO_S3_UPLOAD_BUCKET_URL,
|
endpoint: 'https://dome-api.slm-lab.net',
|
||||||
errorType: error instanceof NoSuchKey ? 'NoSuchKey' : 'Unknown'
|
errorType: error instanceof NoSuchKey ? 'NoSuchKey' : 'Unknown'
|
||||||
});
|
});
|
||||||
if (error instanceof NoSuchKey) {
|
if (error instanceof NoSuchKey) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user