mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-23 10:06:41 +02:00
- Implement mana-media service with PostgreSQL/Drizzle ORM persistence - Add content-addressable storage (SHA-256) for automatic deduplication - Add Matrix MXC URL import endpoint to copy images from Matrix - Create @manacore/media-client package for service consumption - Integrate mana-media into NutriPhi bot for persistent image storage - Update pnpm-workspace.yaml to include nested service packages - Add mana-media to docker-compose with port 3015 Images sent to NutriPhi bot are now stored in mana-media after analysis, providing persistent storage with deduplication across all apps. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
33 lines
1,023 B
TypeScript
33 lines
1,023 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { ConfigModule } from '@nestjs/config';
|
|
import { BullModule } from '@nestjs/bullmq';
|
|
import { DatabaseModule } from './db/database.module';
|
|
import { UploadModule } from './modules/upload/upload.module';
|
|
import { StorageModule } from './modules/storage/storage.module';
|
|
import { ProcessModule } from './modules/process/process.module';
|
|
import { DeliveryModule } from './modules/delivery/delivery.module';
|
|
import { MatrixModule } from './modules/matrix/matrix.module';
|
|
import { HealthController } from './health.controller';
|
|
|
|
@Module({
|
|
imports: [
|
|
ConfigModule.forRoot({
|
|
isGlobal: true,
|
|
}),
|
|
BullModule.forRoot({
|
|
connection: {
|
|
host: process.env.REDIS_HOST || 'localhost',
|
|
port: parseInt(process.env.REDIS_PORT || '6379'),
|
|
password: process.env.REDIS_PASSWORD || undefined,
|
|
},
|
|
}),
|
|
DatabaseModule,
|
|
StorageModule,
|
|
UploadModule,
|
|
ProcessModule,
|
|
DeliveryModule,
|
|
MatrixModule,
|
|
],
|
|
controllers: [HealthController],
|
|
})
|
|
export class AppModule {}
|