mirror of
https://github.com/immich-app/immich.git
synced 2025-11-15 11:32:35 +09:00
* Implementing video upload features * setup image resize processor * Add video thumbnail with duration and icon * Fixed issue with video upload timeout and upper case file type on ios * Added video player page * Added video player page * Fixing video player not play on ios * Added partial file streaming for ios/android video request * Added nginx as proxy server for better file serving * update nginx and docker-compose file * Video player working correctly * Video player working correctly * Split duration to the second
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { AssetService } from './asset.service';
|
|
import { AssetController } from './asset.controller';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { AssetEntity } from './entities/asset.entity';
|
|
import { ImageOptimizeModule } from '../../modules/image-optimize/image-optimize.module';
|
|
import { AssetOptimizeService } from '../../modules/image-optimize/image-optimize.service';
|
|
import { BullModule } from '@nestjs/bull';
|
|
|
|
@Module({
|
|
imports: [
|
|
BullModule.registerQueue({
|
|
name: 'optimize',
|
|
defaultJobOptions: {
|
|
attempts: 3,
|
|
removeOnComplete: true,
|
|
removeOnFail: false,
|
|
},
|
|
}),
|
|
BullModule.registerQueue({
|
|
name: 'machine-learning',
|
|
defaultJobOptions: {
|
|
attempts: 3,
|
|
removeOnComplete: true,
|
|
removeOnFail: false,
|
|
},
|
|
}),
|
|
TypeOrmModule.forFeature([AssetEntity]),
|
|
ImageOptimizeModule,
|
|
],
|
|
controllers: [AssetController],
|
|
providers: [AssetService, AssetOptimizeService],
|
|
exports: [],
|
|
})
|
|
export class AssetModule {}
|