2016-12-26 23:36:38 +01:00
|
|
|
import {ConfigLoader} from "./ConfigLoader";
|
2016-05-10 21:33:58 +02:00
|
|
|
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
|
|
|
|
2016-05-10 21:33:58 +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-05-10 21:33:58 +02:00
|
|
|
};
|
2016-04-10 22:53:46 +02:00
|
|
|
|
2016-05-10 21:33:58 +02:00
|
|
|
ConfigLoader.init(Config, path.join(__dirname, './../../config.json'), [["PORT", "Server-port"]]);
|
2016-07-07 22:16:04 +02:00
|
|
|
|
2016-05-10 21:33:58 +02:00
|
|
|
|