2016-12-27 06:36:38 +08:00
|
|
|
import {ConfigLoader} from "./ConfigLoader";
|
2016-05-11 03:33:58 +08:00
|
|
|
import * as path from "path";
|
|
|
|
import {ConfigClass, DatabaseType} from "../../common/config/Config";
|
2016-04-11 04:58:36 +08:00
|
|
|
|
2016-12-27 06:36:38 +08:00
|
|
|
export let Config = new ConfigClass();
|
2016-04-11 04:53:46 +08:00
|
|
|
|
2016-05-11 03:33:58 +08:00
|
|
|
Config.Server = {
|
|
|
|
port: 80,
|
2016-06-25 21:11:33 +08:00
|
|
|
imagesFolder: "demo/images",
|
2017-05-28 18:33:18 +08:00
|
|
|
thumbnail: {
|
|
|
|
folder: "demo/TEMP",
|
|
|
|
hardwareAcceleration: true
|
|
|
|
},
|
2016-12-27 23:09:47 +08:00
|
|
|
database: {
|
|
|
|
type: DatabaseType.mysql,
|
|
|
|
mysql: {
|
|
|
|
host: "localhost",
|
|
|
|
username: "root",
|
|
|
|
password: "root",
|
|
|
|
database: "pigallery2"
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2016-05-11 03:33:58 +08:00
|
|
|
};
|
2016-04-11 04:53:46 +08:00
|
|
|
|
2016-05-11 03:33:58 +08:00
|
|
|
ConfigLoader.init(Config, path.join(__dirname, './../../config.json'), [["PORT", "Server-port"]]);
|
2016-07-08 04:16:04 +08:00
|
|
|
|
2016-05-11 03:33:58 +08:00
|
|
|
|