mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-16 11:37:13 +02:00
23 lines
495 B
TypeScript
23 lines
495 B
TypeScript
|
|
import {ConfigLoader} from "./ConfigLoader";
|
|
|
|
export enum DatabaseType{
|
|
memory, mongoDB
|
|
}
|
|
|
|
export class ConfigClass{
|
|
|
|
constructor(){
|
|
ConfigLoader.init(this,__dirname+'./../../config.json');
|
|
}
|
|
|
|
public port:number = 80;
|
|
|
|
public thumbnailSizes:Array<number> = [200];
|
|
public imagesFolder:string = "/demo/images";
|
|
public thumbnailFolder:string = "/demo/TEMP";
|
|
public databaseType:DatabaseType = DatabaseType.mongoDB;
|
|
}
|
|
|
|
|
|
export var Config = new ConfigClass(); |