rename to 'send'
This commit is contained in:
parent
57c7c475fc
commit
20b9766742
10 changed files with 26 additions and 26 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue