fix phantomjs ssl error and space screenshots

This commit is contained in:
mntmn
2019-05-19 23:16:30 +02:00
parent 69037685c1
commit d19d02220e
2 changed files with 6 additions and 4 deletions

View File

@@ -26,6 +26,9 @@ const serveStatic = require('serve-static');
const isProduction = app.get('env') === 'production';
// workaround for libssl_conf.so error triggered by phantomjs
process.env['OPENSSL_CONF'] = '/dev/null';
console.log("Booting Spacedeck Open… (environment: " + app.get('env') + ")");
app.use(logger(isProduction ? 'combined' : 'dev'));
@@ -72,7 +75,7 @@ app.use(helmet.frameguard())
app.use(helmet.xssFilter())
app.use(helmet.hsts({
maxAge: 7776000000,
includeSubdomains: true
includeSubDomains: true
}))
app.disable('x-powered-by');
app.use(helmet.noSniff())