make site responsive and add feedback link

This commit is contained in:
John Gruen 2017-07-20 23:52:21 +02:00
parent 34f26fc017
commit 463393552b
9 changed files with 290 additions and 134 deletions

View file

@ -34,10 +34,12 @@ app.engine(
app.set('view engine', 'handlebars');
app.use(helmet());
app.use(helmet.hsts({
maxAge: 31536000,
force: conf.env === 'production'
}));
app.use(
helmet.hsts({
maxAge: 31536000,
force: conf.env === 'production'
})
);
app.use(
helmet.contentSecurityPolicy({
directives: {
@ -241,7 +243,7 @@ app.post('/upload', (req, res, next) => {
.catch(err => {
log.info('DeleteError:', newId);
});
})
});
});
app.get('/__lbheartbeat__', (req, res) => {