rename to 'send'

This commit is contained in:
Danny Coates 2017-07-11 12:34:49 -07:00
parent 57c7c475fc
commit 20b9766742
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
10 changed files with 26 additions and 26 deletions

View file

@ -3,7 +3,7 @@ const conf = require('./config.js');
const isProduction = conf.env === 'production';
const mozlog = require('mozlog')({
app: 'FirefoxFileshare',
app: 'FirefoxSend',
level: isProduction ? 'INFO' : 'verbose',
fmt: isProduction ? 'heka' : 'pretty',
debug: !isProduction

View file

@ -16,7 +16,7 @@ if (conf.sentry_dsn) {
const mozlog = require('./log.js');
const log = mozlog('portal.server');
const log = mozlog('send.server');
const STATIC_PATH = path.join(__dirname, '../public');
@ -154,7 +154,7 @@ app.post('/delete/:id', (req, res) => {
app.post('/upload', (req, res, next) => {
const newId = crypto.randomBytes(5).toString('hex');
let meta;
try {
meta = JSON.parse(req.header('X-File-Metadata'));
} catch(err) {
@ -202,7 +202,7 @@ app.get('/__version__', (req, res) => {
});
const server = app.listen(conf.listen_port, () => {
log.info('startServer:', `Portal app listening on port ${conf.listen_port}!`);
log.info('startServer:', `Send app listening on port ${conf.listen_port}!`);
});
const validateID = route_id => {
@ -216,4 +216,4 @@ const validateIV = route_id => {
module.exports = {
server: server,
storage: storage
}
}

View file

@ -7,7 +7,7 @@ const path = require('path');
const mozlog = require('./log.js');
const log = mozlog('portal.storage');
const log = mozlog('send.storage');
const redis = require('redis');
const redis_client = redis.createClient({