1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-16 11:37:13 +02:00
pigallery2/backend/config/Config.ts

23 lines
539 B
TypeScript
Raw Normal View History

2016-04-10 22:53:46 +02:00
import {ConfigLoader} from "./ConfigLoader";
import * as path from "path";
2016-04-10 22:53:46 +02:00
2016-04-22 13:23:44 +02:00
export enum DatabaseType{
memory, mongoDB
}
2016-05-09 17:04:56 +02:00
export class ConfigClass {
2016-04-10 22:53:46 +02:00
2016-05-09 17:04:56 +02:00
constructor() {
ConfigLoader.init(this, path.join(__dirname, './../../config.json'));
2016-04-10 22:53:46 +02:00
}
2016-05-01 10:46:21 +02:00
public PORT:number = 80;
2016-04-10 22:58:36 +02:00
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();