fix HTTP_LISTEN_PORT

This commit is contained in:
SrGooglo 2023-11-28 19:27:51 +00:00
parent 65c6cd1d1f
commit ffb8c2b093
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ module.exports = {
exec_mode: "cluster", exec_mode: "cluster",
env: { env: {
"NODE_ENV": "production", "NODE_ENV": "production",
"MAIN_LISTEN_PORT": 5000, "HTTP_LISTEN_PORT": 5000,
"LOG_REQUESTS": true, "LOG_REQUESTS": true,
}, },
node_args: "-r dotenv/config", node_args: "-r dotenv/config",

View File

@ -14,7 +14,7 @@ import internalEvents from "./events"
export default class API extends Server { export default class API extends Server {
static refName = "MAIN-API" static refName = "MAIN-API"
static listen_port = 3010 static listen_port = process.env.HTTP_LISTEN_PORT || 3010
static requireWSAuth = true static requireWSAuth = true