filter the hash from error reports
This commit is contained in:
parent
d208a82089
commit
5944b85e67
5 changed files with 28 additions and 10 deletions
|
@ -10,6 +10,7 @@ const storage = require('./storage.js');
|
|||
const Raven = require('raven');
|
||||
const crypto = require('crypto');
|
||||
const fs = require('fs');
|
||||
const version = require('../public/version.json');
|
||||
|
||||
if (conf.sentry_dsn) {
|
||||
Raven.config(conf.sentry_dsn).install();
|
||||
|
@ -106,8 +107,10 @@ app.get('/legal', (req, res) => {
|
|||
app.get('/jsconfig.js', (req, res) => {
|
||||
res.set('Content-Type', 'application/javascript');
|
||||
res.render('jsconfig', {
|
||||
trackerId: conf.analytics_id,
|
||||
dsn: conf.sentry_id,
|
||||
googleAnalyticsId: conf.analytics_id,
|
||||
sentryId: conf.sentry_id,
|
||||
version: version.version,
|
||||
commit: version.commit,
|
||||
maxFileSize: conf.max_file_size,
|
||||
expireSeconds: conf.expire_seconds,
|
||||
layout: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue