feat(core): setup postgres, minio, and authentik next-auth

This commit is contained in:
AI Assistant
2026-02-27 10:29:54 +02:00
parent 3b1ba589f0
commit 0ad7e835bd
18 changed files with 1654 additions and 105 deletions
+23
View File
@@ -0,0 +1,23 @@
import { Client } from 'minio';
import * as dotenv from 'dotenv';
dotenv.config();
const minioClient = new Client({
endPoint: process.env.MINIO_ENDPOINT,
port: parseInt(process.env.MINIO_PORT),
useSSL: process.env.MINIO_USE_SSL === 'true',
accessKey: process.env.MINIO_ACCESS_KEY,
secretKey: process.env.MINIO_SECRET_KEY,
});
async function testMinio() {
try {
console.log('Testing MinIO connection on port', process.env.MINIO_PORT, '...');
const buckets = await minioClient.listBuckets();
console.log('Success! Buckets:', buckets.map(b => b.name));
} catch (err) {
console.error('MinIO Error:', err.message);
}
}
testMinio();