2018-03-10 03:30:06 +01:00
|
|
|
function SiteConfig () {
|
|
|
|
this.analytics = {
|
2018-03-10 03:23:19 +01:00
|
|
|
googleId: 'default',
|
2018-03-10 03:30:06 +01:00
|
|
|
};
|
|
|
|
this.assetDefaults = {
|
2018-03-13 03:26:03 +01:00
|
|
|
title : 'Spee.ch',
|
2018-03-10 03:23:19 +01:00
|
|
|
thumbnail : 'https://spee.ch/assets/img/video_thumb_default.png',
|
|
|
|
description: 'Open-source, decentralized image and video sharing.',
|
2018-03-10 03:30:06 +01:00
|
|
|
};
|
2018-03-13 03:26:03 +01:00
|
|
|
this.auth = {
|
2018-03-10 03:23:19 +01:00
|
|
|
sessionKey: 'default',
|
2018-03-10 03:30:06 +01:00
|
|
|
};
|
2018-03-13 03:26:03 +01:00
|
|
|
this.details = {
|
|
|
|
title : 'Spee.h Dev1',
|
|
|
|
host : 'https://dev1.spee.ch',
|
|
|
|
description: 'Open-source, decentralized image and video sharing.',
|
|
|
|
};
|
|
|
|
this.publishing = {
|
|
|
|
additionalClaimAddresses: [], // optional
|
|
|
|
disabled : false,
|
|
|
|
primaryClaimAddress : 'default',
|
|
|
|
thumbnailChannel : 'default',
|
|
|
|
thumbnailChannelId : 'default',
|
|
|
|
uploadDirectory : '/home/lbry/Uploads',
|
|
|
|
};
|
|
|
|
this.configure = (config) => {
|
|
|
|
if (!config) {
|
2018-03-13 03:33:09 +01:00
|
|
|
return console.log('No site config received.');
|
2018-03-13 03:26:03 +01:00
|
|
|
}
|
|
|
|
const {analytics, publishing, details, assetDefaults, auth} = config;
|
|
|
|
this.analytics = analytics;
|
|
|
|
this.publishing = publishing;
|
|
|
|
this.details = details;
|
|
|
|
this.assetDefaults = assetDefaults;
|
|
|
|
this.auth = auth;
|
2018-03-10 03:30:06 +01:00
|
|
|
};
|
2018-03-10 03:23:19 +01:00
|
|
|
};
|
2018-03-10 03:30:06 +01:00
|
|
|
|
|
|
|
module.exports = new SiteConfig();
|