ДМ
Size: a a a
ДМ
DD
I
DZ
MA
ДМ
АС
АС
I
АС
s
I
I
s
I
I
D
app.useStaticAssets(path.join(__dirname, '../../minio/mybucket'), {
prefix: '/media',
});PL
TypeOrmModule.forRootAsync({
imports: [ConfigModule],
useFactory: (configService: ConfigService) => ({
type: 'postgres',
host: configService.get<string>('DB_HOST'),
port: configService.get<number>('DB_PORT'),
username: configService.get<string>('DB_USERNAME'),
password: configService.get<string>('DB_PASSWORD'),
database: configService.get<string>('DB_DATABASE'),
entities: [join(__dirname, '../../../apps/api/**/*.entity{.ts,.js}')],
logging:
process.env.NODE_ENV == 'production' ? ['error'] : ['query', 'error'],
synchronize: false,
}),
inject: [ConfigService],
}),PL
kk