parse-dashboard 5.1.0-alpha.2 → 5.1.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,6 +19,7 @@ module.exports = (options) => {
|
|
|
19
19
|
const allowInsecureHTTP = options.allowInsecureHTTP || process.env.PARSE_DASHBOARD_ALLOW_INSECURE_HTTP;
|
|
20
20
|
const cookieSessionSecret = options.cookieSessionSecret || process.env.PARSE_DASHBOARD_COOKIE_SESSION_SECRET;
|
|
21
21
|
const trustProxy = options.trustProxy || process.env.PARSE_DASHBOARD_TRUST_PROXY;
|
|
22
|
+
const cookieSessionMaxAge = options.cookieSessionMaxAge || process.env.PARSE_DASHBOARD_COOKIE_SESSION_MAX_AGE;
|
|
22
23
|
const dev = options.dev;
|
|
23
24
|
|
|
24
25
|
if (trustProxy && allowInsecureHTTP) {
|
|
@@ -145,7 +146,7 @@ module.exports = (options) => {
|
|
|
145
146
|
if (allowInsecureHTTP || trustProxy || dev) app.enable('trust proxy');
|
|
146
147
|
|
|
147
148
|
config.data.trustProxy = trustProxy;
|
|
148
|
-
let dashboardOptions = { allowInsecureHTTP, cookieSessionSecret, dev };
|
|
149
|
+
let dashboardOptions = { allowInsecureHTTP, cookieSessionSecret, dev, cookieSessionMaxAge };
|
|
149
150
|
app.use(mountPath, parseDashboard(config.data, dashboardOptions));
|
|
150
151
|
let server;
|
|
151
152
|
if(!configSSLKey || !configSSLCert){
|