From 2e22418e077d21b2a63e940994f5817c137ee5bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 2 Oct 2018 02:17:04 +0200 Subject: [PATCH] metadata --- package.json | 7 ++++--- server.js | 5 ++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 001a42f..f331e8e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "socket-io-crafty", - "version": "0.0.1", - "description": "Socket.IO for a CraftyJS game on Node.js on Docker", + "name": "node-fftcg", + "version": "0.0.2", + "description": "FFTCG online using Socket.IO and CraftyJS on Node.js on Docker", "author": "JMM ", "main": "server.js", "scripts": { @@ -9,6 +9,7 @@ }, "dependencies": { "express": "^4.16.1", + "helmet": "*", "socket.io": "^2.1.1", "gulp": "*", "gulp-sourcemaps": "*", diff --git a/server.js b/server.js index fc24e38..ff7b544 100644 --- a/server.js +++ b/server.js @@ -3,7 +3,8 @@ var http = require('http'), socketio = require('socket.io'), express = require('express'), - gulp = global.gulp = require('gulp'); + gulp = global.gulp = require('gulp'), + helmet = require('helmet'); // gulp the sources require('./gulpfile'); @@ -19,6 +20,8 @@ web.listen(8080, function () { console.log('listening on port 8080'); }); +app.use(helmet()); + // Static content app.use(express.static(__dirname + '/static'));