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

17 lines
499 B
TypeScript

///<reference path="../../typings/index.d.ts"/>
import {ConfigLoader} from "./../../backend/config/ConfigLoader";
import * as path from "path";
import {ConfigClass, DatabaseType} from "../../common/config/Config";
export var Config = new ConfigClass();
Config.Server = {
port: 80,
imagesFolder: "/demo/images",
thumbnailFolder: "/demo/TEMP",
databaseType: DatabaseType.memory
};
ConfigLoader.init(Config, path.join(__dirname, './../../config.json'), [["PORT", "Server-port"]]);