mirror of
https://github.com/immich-app/immich.git
synced 2025-01-10 13:56:47 +01:00
1e3464fe47
* Added file selector * Extract metadata to upload files to the web * Added request for uploading * Generate jpeg/Webp thumbnail for asset uploaded without thumbnail data * Added generating thumbnail for video and WebSocket broadcast after thumbnail is generated * Added video length extraction * Added Uploading Panel * Added upload progress store and styling the uploaded asset * Added condition to only show upload panel when there is upload in progress * Remove asset from the upload list after successfully uploading * Added WebSocket to listen to upload event on the web * Added mechanism to check for existing assets before uploading on the web * Added test workflow * Update readme
21 lines
744 B
TypeScript
21 lines
744 B
TypeScript
import { Logger } from '@nestjs/common';
|
|
import { NestFactory } from '@nestjs/core';
|
|
import { RedisIoAdapter } from '../../immich/src/middlewares/redis-io.adapter.middleware';
|
|
import { MicroservicesModule } from './microservices.module';
|
|
|
|
async function bootstrap() {
|
|
const app = await NestFactory.create(MicroservicesModule);
|
|
|
|
app.useWebSocketAdapter(new RedisIoAdapter(app));
|
|
|
|
await app.listen(3000, () => {
|
|
if (process.env.NODE_ENV == 'development') {
|
|
Logger.log('Running Immich Microservices in DEVELOPMENT environment', 'ImmichMicroservice');
|
|
}
|
|
|
|
if (process.env.NODE_ENV == 'production') {
|
|
Logger.log('Running Immich Microservices in PRODUCTION environment', 'ImmichMicroservice');
|
|
}
|
|
});
|
|
}
|
|
bootstrap();
|