summaryrefslogtreecommitdiff
path: root/src/node/hooks/express
diff options
context:
space:
mode:
authorStefan <mu.stefan@googlemail.com>2016-07-10 12:44:45 +0200
committerStefan <mu.stefan@googlemail.com>2016-07-10 12:44:45 +0200
commit009b61b33843a5c03587b7e12e7d411dea0ca51e (patch)
tree57bc1b370376c8e3c57baa2ae15f7c4480fa877f /src/node/hooks/express
parent4ea9c4f98ddabba231e59b9bd321ba1af0894552 (diff)
downloadetherpad-lite-009b61b33843a5c03587b7e12e7d411dea0ca51e.zip
Make express-session cookie scheme dependent
Diffstat (limited to 'src/node/hooks/express')
-rw-r--r--src/node/hooks/express/webaccess.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/hooks/express/webaccess.js b/src/node/hooks/express/webaccess.js
index 80c21837..c53eb1d1 100644
--- a/src/node/hooks/express/webaccess.js
+++ b/src/node/hooks/express/webaccess.js
@@ -120,7 +120,7 @@ exports.expressConfigure = function (hook_name, args, cb) {
}
args.app.sessionStore = exports.sessionStore;
- args.app.use(sessionModule({secret: exports.secret, store: args.app.sessionStore, resave: true, saveUninitialized: true, name: 'express_sid', proxy: true, cookie: { secure: true }}));
+ args.app.use(sessionModule({secret: exports.secret, store: args.app.sessionStore, resave: true, saveUninitialized: true, name: 'express_sid', proxy: true, cookie: { secure: !!settings.ssl }}));
args.app.use(cookieParser(settings.sessionKey, {}));