port setting
This commit is contained in:
parent
f14ee322e3
commit
53aebb365e
@ -76,7 +76,7 @@ async function main(){
|
|||||||
app.use(router.allowedMethods());
|
app.use(router.allowedMethods());
|
||||||
|
|
||||||
console.log("start server");
|
console.log("start server");
|
||||||
app.listen(8080,settings.localmode ? "127.0.0.1" : "0.0.0.0");
|
app.listen(settings.port,settings.localmode ? "127.0.0.1" : "0.0.0.0");
|
||||||
return app;
|
return app;
|
||||||
}
|
}
|
||||||
main();
|
main();
|
@ -6,13 +6,15 @@ export type Setting = {
|
|||||||
path: string[],
|
path: string[],
|
||||||
localmode: boolean,
|
localmode: boolean,
|
||||||
guest: boolean,
|
guest: boolean,
|
||||||
jwt_secretkey: string
|
jwt_secretkey: string,
|
||||||
|
port:number,
|
||||||
}
|
}
|
||||||
const default_setting:Setting = {
|
const default_setting:Setting = {
|
||||||
path:[],
|
path:[],
|
||||||
localmode: true,
|
localmode: true,
|
||||||
guest:false,
|
guest:false,
|
||||||
jwt_secretkey:"itsRandom",
|
jwt_secretkey:"itsRandom",
|
||||||
|
port:8080,
|
||||||
}
|
}
|
||||||
let setting: null|Setting = null;
|
let setting: null|Setting = null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user