From c9e061734e5cff23a6251c578358c0381fd10eb0 Mon Sep 17 00:00:00 2001 From: david-rocca Date: Tue, 22 Oct 2024 13:34:07 -0400 Subject: [PATCH] unify names --- .env | 2 +- src/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 547228b99..feecca2a2 100644 --- a/.env +++ b/.env @@ -2,4 +2,4 @@ PORT = 3000 LOCAL_KEY=TCF25YM-39C4H6D-KA32EGF-V5XSHN3 RATE_LIMIT_WINDOW_SECONDS=60 RATE_LIMIT_MAX_CONNECTIONS=1000 -USE_AWS_CERT_FILE=true +useAWSCert=true diff --git a/src/index.js b/src/index.js index 72aa722a6..803de3c70 100644 --- a/src/index.js +++ b/src/index.js @@ -51,8 +51,8 @@ app.use((req, res, next) => { console.log('Checking for AWS cert file') const appEnv = process.env.NODE_ENV var awsCERTFile = false -if (process.env.USE_AWS_CERT) { - awsCERTFile = process.env.USE_AWS_CERT +if (process.env.useAWSCert) { + awsCERTFile = process.env.useAWSCert } else { awsCERTFile = config.has(`${appEnv}.useAWSCert`) ? config.get(`${appEnv}.useAWSCert`) : false }