mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
25 lines
600 B
TypeScript
25 lines
600 B
TypeScript
import {ConfigLoader} from "./ConfigLoader";
|
|
import * as path from "path";
|
|
import {ConfigClass, DatabaseType} from "../../common/config/Config";
|
|
|
|
export let Config = new ConfigClass();
|
|
|
|
Config.Server = {
|
|
port: 80,
|
|
imagesFolder: "demo/images",
|
|
thumbnailFolder: "demo/TEMP",
|
|
database: {
|
|
type: DatabaseType.mysql,
|
|
mysql: {
|
|
host: "localhost",
|
|
username: "root",
|
|
password: "root",
|
|
database: "pigallery2"
|
|
|
|
}
|
|
}
|
|
};
|
|
|
|
ConfigLoader.init(Config, path.join(__dirname, './../../config.json'), [["PORT", "Server-port"]]);
|
|
|
|
|