1
0
Fork 0
mirror of synced 2024-06-23 08:30:31 +12:00

Prefer worker/app port to generic port env variable - #7736.

This commit is contained in:
mike12345567 2022-09-12 15:17:39 +01:00
parent cd6874b2b0
commit 3c857ec501
2 changed files with 4 additions and 3 deletions

View file

@ -37,8 +37,8 @@ function parseIntSafe(number) {
let inThread = false
module.exports = {
// important
PORT: process.env.PORT || process.env.APP_PORT,
// important - prefer app port to generic port
PORT: process.env.APP_PORT || process.env.PORT,
JWT_SECRET: process.env.JWT_SECRET,
COUCH_DB_URL: process.env.COUCH_DB_URL,
MINIO_URL: process.env.MINIO_URL,

View file

@ -43,7 +43,8 @@ const env = {
PLATFORM_URL: process.env.PLATFORM_URL,
APPS_URL: process.env.APPS_URL,
// ports
PORT: process.env.PORT || process.env.WORKER_PORT,
// prefer worker port to generic port
PORT: process.env.WORKER_PORT || process.env.PORT,
CLUSTER_PORT: process.env.CLUSTER_PORT,
// flags
NODE_ENV: process.env.NODE_ENV,