2016-04-09 23:09:28 +02:00
|
|
|
|
2016-04-10 22:53:46 +02:00
|
|
|
import {ConfigLoader} from "./ConfigLoader";
|
|
|
|
|
2016-04-22 13:23:44 +02:00
|
|
|
export enum DatabaseType{
|
|
|
|
memory, mongoDB
|
|
|
|
}
|
|
|
|
|
2016-04-10 22:53:46 +02:00
|
|
|
export class ConfigClass{
|
|
|
|
|
|
|
|
constructor(){
|
2016-04-10 22:58:36 +02:00
|
|
|
ConfigLoader.init(this,__dirname+'./../../config.json');
|
2016-04-10 22:53:46 +02:00
|
|
|
}
|
|
|
|
|
2016-04-10 22:58:36 +02:00
|
|
|
public port:number = 80;
|
|
|
|
|
|
|
|
public thumbnailSizes:Array<number> = [200];
|
|
|
|
public imagesFolder:string = "/demo/images";
|
|
|
|
public thumbnailFolder:string = "/demo/TEMP";
|
2016-04-22 13:23:44 +02:00
|
|
|
public databaseType:DatabaseType = DatabaseType.mongoDB;
|
2016-04-10 22:53:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export var Config = new ConfigClass();
|