merged speech package branch and updated configs

This commit is contained in:
bill bittner 2018-03-19 13:58:45 -07:00
parent 56edb908a3
commit ce706afbbd
11 changed files with 59 additions and 33 deletions

13
.gitignore vendored
View file

@ -1,4 +1,9 @@
node_modules
.idea
/devConfig/sequelizeCliConfig.js
/devConfig/testingConfig.js
node_modules/
.idea/
config/lbryConfig.js
config/loggerConfig.js
config/mysqlConfig.js
config/siteConfig.js
config/slackConfig.js
devConfig/sequelizeCliConfig.js
devConfig/testingConfig.js

View file

@ -0,0 +1,5 @@
const loggerConfig = {
logLevel: 'debug', // options: silly, debug, verbose, info
};
module.exports = loggerConfig;

View file

@ -2,15 +2,6 @@ function MysqlConfig () {
this.database = 'default';
this.username = 'default';
this.password = 'default';
this.configure = (config) => {
if (!config) {
return console.log('No MySQL config received.');
}
const {database, username, password} = config;
this.database = database;
this.username = username;
this.password = password;
};
};
module.exports = new MysqlConfig();

View file

@ -0,0 +1,7 @@
function MysqlConfig () {
this.database = 'default';
this.username = 'default';
this.password = 'default';
};
module.exports = new MysqlConfig();

View file

@ -26,17 +26,6 @@ function SiteConfig () {
thumbnailChannelId : 'default',
uploadDirectory : '/home/lbry/Uploads',
};
this.configure = (config) => {
if (!config) {
return console.log('No site config received.');
}
const { analytics, assetDefaults, auth, details, publishing } = config;
this.analytics = analytics;
this.assetDefaults = assetDefaults;
this.auth = auth;
this.details = details;
this.publishing = publishing;
};
};
module.exports = new SiteConfig();

View file

@ -0,0 +1,31 @@
function SiteConfig () {
this.analytics = {
googleId: 'default',
};
this.assetDefaults = {
description: 'An asset published on Spee.ch',
thumbnail : 'https://spee.ch/assets/img/video_thumb_default.png',
title : 'Spee.ch',
};
this.auth = {
sessionKey: 'default',
};
this.details = {
description: 'Open-source, decentralized image and video sharing.',
host : 'default',
port : 3000,
title : 'Spee.ch',
twitter : '@spee_ch',
};
this.publishing = {
additionalClaimAddresses: [],
disabled : false,
disabledMessage : 'Please check back soon.',
primaryClaimAddress : 'default',
thumbnailChannel : 'default',
thumbnailChannelId : 'default',
uploadDirectory : '/home/lbry/Uploads',
};
};
module.exports = new SiteConfig();

View file

@ -2,15 +2,6 @@ function SlackConfig () {
this.slackWebHook = 'default';
this.slackErrorChannel = 'default';
this.slackInfoChannel = 'default';
this.configure = (config) => {
if (!config) {
return console.log('No slack config received.');
}
const {slackWebHook, slackErrorChannel, slackInfoChannel} = config;
this.slackWebHook = slackWebHook;
this.slackErrorChannel = slackErrorChannel;
this.slackInfoChannel = slackInfoChannel;
};
};
module.exports = new SlackConfig();

View file

@ -0,0 +1,7 @@
function SlackConfig () {
this.slackWebHook = 'default';
this.slackErrorChannel = 'default';
this.slackInfoChannel = 'default';
};
module.exports = new SlackConfig();