1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

25 lines
600 B
TypeScript
Raw Normal View History

2016-12-26 23:36:38 +01:00
import {ConfigLoader} from "./ConfigLoader";
import * as path from "path";
import {ConfigClass, DatabaseType} from "../../common/config/Config";
2016-04-10 22:58:36 +02:00
2016-12-26 23:36:38 +01:00
export let Config = new ConfigClass();
2016-04-10 22:53:46 +02:00
Config.Server = {
port: 80,
2016-06-25 15:11:33 +02:00
imagesFolder: "demo/images",
thumbnailFolder: "demo/TEMP",
2016-12-27 16:09:47 +01:00
database: {
type: DatabaseType.mysql,
mysql: {
host: "localhost",
username: "root",
password: "root",
database: "pigallery2"
}
}
};
2016-04-10 22:53:46 +02:00
ConfigLoader.init(Config, path.join(__dirname, './../../config.json'), [["PORT", "Server-port"]]);
2016-07-07 22:16:04 +02:00