extend session expiry time, remove unused socials

This commit is contained in:
Evert Prants 2019-03-10 13:24:30 +02:00
parent ef4d2ecb0c
commit 6e07960150
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 4 additions and 5 deletions

View File

@ -29,7 +29,10 @@ app.use(session({
store: new SessionStore(config.redis), store: new SessionStore(config.redis),
resave: false, resave: false,
saveUninitialized: true, 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) => { app.use((req, res, next) => {

View File

@ -102,7 +102,3 @@ html
.d-flex.justify-content-center .d-flex.justify-content-center
a.btn-social#gitlab(href="https://gitlab.icynet.eu/IcyNetwork/" target="_blank") a.btn-social#gitlab(href="https://gitlab.icynet.eu/IcyNetwork/" target="_blank")
i.fa.fa-fw.fa-gitlab 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