From 33b75ed075d95f85c7e5ce816192f370bf1dc3ae Mon Sep 17 00:00:00 2001 From: Marina Pecherina Date: Fri, 31 May 2024 11:17:01 +0300 Subject: [PATCH] refactored code in index.js --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index a19dcee..4a0770c 100644 --- a/index.js +++ b/index.js @@ -117,6 +117,9 @@ app.post('/users_code', bodyParser.json(), async (req, res, next) => { if (DASHBOARD_ACTIVATED) { + const options = { + + } const dashboardConfig = { apps: [{ serverURL: URL_SERVER, @@ -125,12 +128,9 @@ if (DASHBOARD_ACTIVATED) { masterKey: MASTER_KEY, appName: parseConfig.appName }], - trustProxy: 1, - PARSE_DASHBOARD_COOKIE_SESSION_SECRET: APP_ID, - PARSE_DASHBOARD_ALLOW_INSECURE_HTTP: 1, - PARSE_DASHBOARD_TRUST_PROXY: 1, - cookieSessionSecret: "IgniteForge", + cookieSessionSecret: APP_ID, allowInsecureHTTP: 1, + trustProxy: 1 }; if (DASH_USER_EMAIL && DASH_USER_PASSWORD)