diff options
author | Stefan <mu.stefan@googlemail.com> | 2016-07-10 12:44:45 +0200 |
---|---|---|
committer | Stefan <mu.stefan@googlemail.com> | 2016-07-10 12:44:45 +0200 |
commit | 009b61b33843a5c03587b7e12e7d411dea0ca51e (patch) | |
tree | 57bc1b370376c8e3c57baa2ae15f7c4480fa877f /src/node/hooks/express | |
parent | 4ea9c4f98ddabba231e59b9bd321ba1af0894552 (diff) | |
download | etherpad-lite-009b61b33843a5c03587b7e12e7d411dea0ca51e.zip |
Make express-session cookie scheme dependent
Diffstat (limited to 'src/node/hooks/express')
-rw-r--r-- | src/node/hooks/express/webaccess.js | 2 |
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, {})); |