diff --git a/config/siteConfig.js b/config/siteConfig.js index a0f7c685..eeeed34f 100644 --- a/config/siteConfig.js +++ b/config/siteConfig.js @@ -1,26 +1,35 @@ -module.exports = { - analytics: { +function SiteConfig () { + this.analytics = { googleId: 'default', - }, - publishing: { + }; + this.publishing = { primaryClaimAddress : 'default', additionalClaimAddresses: [], thumbnailChannel : 'default', thumbnailChannelId : 'default', uploadDirectory : '/home/lbry/Uploads', - }, - details: { + }; + this.details = { title : 'Spee { + if (analytics) this.analytics = analytics; + if (publishing) this.publishing = publishing; + if (details) this.details = details; + if (assetDefaults) this.assetDefaults = assetDefaults; + if (session) this.session = session; + }; }; + +module.exports = new SiteConfig(); diff --git a/server.js b/server.js index bf7e384c..b9d3c9a0 100644 --- a/server.js +++ b/server.js @@ -26,11 +26,10 @@ function SpeechServer ({ mysqlConfig, siteConfig, slackConfig }) { this.configureConfigFiles = () => { const mysqlAppConfig = require('./config/mysqlConfig.js'); mysqlAppConfig.configure(mysqlConfig); + const siteAppConfig = require('./config/siteConfig.js'); + siteAppConfig.configure(siteConfig); const slackAppConfig = require('./config/slackConfig.js'); slackAppConfig.configure(slackConfig); - // // print the config variables - // require('./helpers/configVarCheck.js')(mysqlAppConfig); - // require('./helpers/configVarCheck.js')(slackAppConfig); }; this.configureLogging = () => { require('./helpers/configureLogger.js')(logger);