From 6e079601507ce17545f26d4b3ae89384651c5154 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Sun, 10 Mar 2019 13:24:30 +0200 Subject: [PATCH] extend session expiry time, remove unused socials --- server/server.js | 5 ++++- views/layout.pug | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/server/server.js b/server/server.js index ff19370..5824b9e 100644 --- a/server/server.js +++ b/server/server.js @@ -29,7 +29,10 @@ app.use(session({ store: new SessionStore(config.redis), resave: false, saveUninitialized: true, - cookie: { secure: process.env.NODE_ENV !== 'development' } + cookie: { + secure: process.env.NODE_ENV !== 'development', + maxAge: 2678400 // 1 month + } })) app.use((req, res, next) => { diff --git a/views/layout.pug b/views/layout.pug index fdb435c..d296bf9 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -102,7 +102,3 @@ html .d-flex.justify-content-center a.btn-social#gitlab(href="https://gitlab.icynet.eu/IcyNetwork/" target="_blank") i.fa.fa-fw.fa-gitlab - a.btn-social#twitter(href="https://twitter.com/IcyNet" target="_blank") - i.fa.fa-fw.fa-twitter - a.btn-social#discord(href="https://discord.gg/Xe7MKSx" target="_blank") - span