Get port and upload path from config

Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
This commit is contained in:
David Mehren 2020-10-30 22:35:57 +01:00
parent cbd4684785
commit 0e7845e38f
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
3 changed files with 21 additions and 8 deletions

View file

@ -5,6 +5,7 @@
*/
import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { TypeOrmModule } from '@nestjs/typeorm';
import { LoggerModule } from '../logger/logger.module';
import { NotesModule } from '../notes/notes.module';
@ -19,6 +20,7 @@ import { MediaService } from './media.service';
NotesModule,
UsersModule,
LoggerModule,
ConfigModule,
],
providers: [MediaService, FilesystemBackend],
exports: [MediaService],