seedlinux

find open source torrents and stats for people wishing to contribute bandwidth.
git clone git://git.beardyjay.co.uk/seedlinux
Log | Files | Refs | README | LICENSE

commit 104be15af5ddb7e7d8389a204eb7fec3e77a81c4
parent 75c5019dc591504b6079c4b2a85850bbc52d0735
Author: Jay Scott <jay@jayscott.co.uk>
Date:   Thu,  6 Jul 2017 21:09:23 +0100

trying opbeat instead of newrelic

Diffstat:
Mapp.js | 4+++-
Mpackage.json | 2+-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/app.js b/app.js @@ -1,7 +1,8 @@ 'use strict'; if(process.env.NODE_ENV === 'production') { - require('newrelic'); + const opbeat = require('opbeat').start(); + app.use(opbeat.middleware.express()); } const express = require('express'); @@ -31,6 +32,7 @@ app.use(helmet({ hsts: false })); + app.use(compression()); app.use(logger('dev')); app.use(bodyParser.json()); diff --git a/package.json b/package.json @@ -20,7 +20,7 @@ "helmet": "^3.6.1", "mongoose": "4.10.8", "morgan": "~1.8.1", - "newrelic": "^1.40.0", + "opbeat": "^4.14.0", "parse-torrent": "^5.8.3", "pug": "^2.0.0-rc.2", "webtorrent-health": "^1.1.1"