add helmet
This commit is contained in:
parent
bb1e952e39
commit
22e58844c9
3 changed files with 7 additions and 4 deletions
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'
|
||||
|
||||
var http = require('http')
|
||||
var https = require('https')
|
||||
var express = require('express')
|
||||
|
|
@ -9,12 +7,17 @@ var plugins = require('./plugins')
|
|||
var logger = require('./logger')
|
||||
var configManager = require('./config-manager')
|
||||
|
||||
const helmet = require('helmet')
|
||||
|
||||
const pair = require('./pair')
|
||||
|
||||
module.exports = function (options) {
|
||||
var app = express()
|
||||
var server
|
||||
|
||||
app.use(helmet())
|
||||
app.use(bodyParser.json())
|
||||
|
||||
const psqlUrl = options.postgresql
|
||||
if (!psqlUrl) {
|
||||
console.log('Missing postgresql entry in configuration file')
|
||||
|
|
@ -34,7 +37,6 @@ module.exports = function (options) {
|
|||
|
||||
console.log('DEBUG9.3 ****************')
|
||||
|
||||
app.use(bodyParser.json())
|
||||
|
||||
console.log('DEBUG9 ****************')
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
"bunyan": "^1.8.1",
|
||||
"chalk": "^1.1.3",
|
||||
"express": "^4.13.4",
|
||||
"helmet": "^2.3.0",
|
||||
"inquirer": "^1.0.0",
|
||||
"lamassu-bitcoinaverage": "~1.0.0",
|
||||
"lamassu-bitcoind": "lamassu/lamassu-bitcoind",
|
||||
|
|
|
|||
2
todo.txt
2
todo.txt
|
|
@ -107,5 +107,5 @@ options: configure per machine; configure per crypto/fiat
|
|||
|
||||
--------------------------------
|
||||
|
||||
- need to create CA: http://stackoverflow.com/questions/19665863/how-do-i-use-a-self-signed-certificate-for-a-https-node-js-server
|
||||
v need to create CA: http://stackoverflow.com/questions/19665863/how-do-i-use-a-self-signed-certificate-for-a-https-node-js-server
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue