spee.ch/config/siteConfig.js
2018-03-13 10:08:15 -07:00

40 lines
1.2 KiB
JavaScript

function SiteConfig () {
this.analytics = {
googleId: 'default',
};
this.assetDefaults = {
title : 'Spee.ch',
thumbnail : 'https://spee.ch/assets/img/video_thumb_default.png',
description: 'Open-source, decentralized image and video sharing.',
};
this.auth = {
sessionKey: 'default',
};
this.details = {
title : 'Spee.h Dev1',
host : 'https://dev1.spee.ch',
description: 'Open-source, decentralized image and video sharing.',
};
this.publishing = {
additionalClaimAddresses: [],
disabled : false,
disabledMessage : 'Please check back soon.',
primaryClaimAddress : 'default',
thumbnailChannel : 'default',
thumbnailChannelId : 'default',
uploadDirectory : '/home/lbry/Uploads',
};
this.configure = (config) => {
if (!config) {
return console.log('No site config received.');
}
const {analytics, publishing, details, assetDefaults, auth} = config;
this.analytics = analytics;
this.assetDefaults = assetDefaults;
this.auth = auth;
this.details = details;
this.publishing = publishing;
};
};
module.exports = new SiteConfig();