migrations; torr search, dl, seed, delete; files scan, delete; configs

This commit is contained in:
Jurgis Sakalauskas
2023-02-03 17:41:40 +02:00
parent 8d354027fc
commit daaeda539b
84 changed files with 5456 additions and 301 deletions
+6
View File
@@ -3,6 +3,7 @@ import { TypeOrmModuleOptions } from '@nestjs/typeorm';
import { TypeOrmConfig } from './type-orm.config';
import { PathsConfig } from './paths.config';
import { VideoFilesConfig } from './video-files.config';
import { RecentSearchesConfig } from './recent-searches.config';
env.config();
@@ -10,6 +11,7 @@ export class ConfigService {
private typeOrmConfig: TypeOrmConfig = new TypeOrmConfig(this);
private pathsConfig: PathsConfig = new PathsConfig(this);
private videoFilesConfig: VideoFilesConfig = new VideoFilesConfig(this);
private recentSearches: RecentSearchesConfig = new RecentSearchesConfig(this);
public getEnv(key: string): any {
return process.env[key];
@@ -32,6 +34,10 @@ export class ConfigService {
public getVideoFilesConfig(): VideoFilesConfig {
return this.videoFilesConfig;
}
public getRecentSearchesConfig(): RecentSearchesConfig {
return this.recentSearches;
}
}
export const configService = new ConfigService();