merged speech package branch and updated configs
This commit is contained in:
parent
56edb908a3
commit
ce706afbbd
11 changed files with 59 additions and 33 deletions
13
.gitignore
vendored
13
.gitignore
vendored
|
@ -1,4 +1,9 @@
|
||||||
node_modules
|
node_modules/
|
||||||
.idea
|
.idea/
|
||||||
/devConfig/sequelizeCliConfig.js
|
config/lbryConfig.js
|
||||||
/devConfig/testingConfig.js
|
config/loggerConfig.js
|
||||||
|
config/mysqlConfig.js
|
||||||
|
config/siteConfig.js
|
||||||
|
config/slackConfig.js
|
||||||
|
devConfig/sequelizeCliConfig.js
|
||||||
|
devConfig/testingConfig.js
|
||||||
|
|
5
config/loggerConfig.js.example
Normal file
5
config/loggerConfig.js.example
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
const loggerConfig = {
|
||||||
|
logLevel: 'debug', // options: silly, debug, verbose, info
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = loggerConfig;
|
|
@ -2,15 +2,6 @@ function MysqlConfig () {
|
||||||
this.database = 'default';
|
this.database = 'default';
|
||||||
this.username = 'default';
|
this.username = 'default';
|
||||||
this.password = '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();
|
module.exports = new MysqlConfig();
|
||||||
|
|
7
config/mysqlConfig.js.example
Normal file
7
config/mysqlConfig.js.example
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
function MysqlConfig () {
|
||||||
|
this.database = 'default';
|
||||||
|
this.username = 'default';
|
||||||
|
this.password = 'default';
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = new MysqlConfig();
|
|
@ -26,17 +26,6 @@ function SiteConfig () {
|
||||||
thumbnailChannelId : 'default',
|
thumbnailChannelId : 'default',
|
||||||
uploadDirectory : '/home/lbry/Uploads',
|
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();
|
module.exports = new SiteConfig();
|
||||||
|
|
31
config/siteConfig.js.example
Normal file
31
config/siteConfig.js.example
Normal 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();
|
|
@ -2,15 +2,6 @@ function SlackConfig () {
|
||||||
this.slackWebHook = 'default';
|
this.slackWebHook = 'default';
|
||||||
this.slackErrorChannel = 'default';
|
this.slackErrorChannel = 'default';
|
||||||
this.slackInfoChannel = '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();
|
module.exports = new SlackConfig();
|
||||||
|
|
7
config/slackConfig.js.example
Normal file
7
config/slackConfig.js.example
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
function SlackConfig () {
|
||||||
|
this.slackWebHook = 'default';
|
||||||
|
this.slackErrorChannel = 'default';
|
||||||
|
this.slackInfoChannel = 'default';
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = new SlackConfig();
|
Loading…
Reference in a new issue