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

23 lines
539 B
TypeScript

import {ConfigLoader} from "./ConfigLoader";
import * as path from "path";
export enum DatabaseType{
memory, mongoDB
}
export class ConfigClass {
constructor() {
ConfigLoader.init(this, path.join(__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();