1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/backend/config/Config.ts

23 lines
495 B
TypeScript
Raw Normal View History

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