spee.ch/config/siteConfig.js

52 lines
1.5 KiB
JavaScript
Raw Normal View History

2018-03-10 03:30:06 +01:00
function SiteConfig () {
this.analytics = {
googleId: 'default',
2018-03-10 03:30:06 +01:00
};
this.assetDefaults = {
description: 'An asset published on Spee.ch',
thumbnail : 'https://spee.ch/assets/img/video_thumb_default.png',
title : 'Spee.ch',
2018-03-10 03:30:06 +01:00
};
2018-03-13 03:26:03 +01:00
this.auth = {
sessionKey: 'default',
2018-03-10 03:30:06 +01:00
};
this.customComponents = {};
this.customContainers = {};
this.customPages = {};
2018-03-13 03:26:03 +01:00
this.details = {
description: 'Open-source, decentralized image and video sharing.',
host : 'default',
2018-03-13 23:37:42 +01:00
port : 3000,
2018-03-13 22:19:00 +01:00
title : 'Spee.ch',
twitter : '@spee_ch',
2018-03-13 03:26:03 +01:00
};
this.publishing = {
additionalClaimAddresses: [],
2018-03-13 03:26:03 +01:00
disabled : false,
disabledMessage : 'Please check back soon.',
2018-03-13 03:26:03 +01:00
primaryClaimAddress : 'default',
thumbnailChannel : 'default',
thumbnailChannelId : 'default',
uploadDirectory : '/home/lbry/Uploads',
};
this.routes = {};
2018-03-29 21:46:20 +02:00
this.update = (config) => {
2018-03-13 03:26:03 +01:00
if (!config) {
2018-03-29 22:39:04 +02:00
return console.log('No site config received.');
2018-03-13 03:26:03 +01:00
}
const { analytics, assetDefaults, auth, customComponents, customContainers, customPages, details, publishing, routes } = config;
2018-03-29 22:39:04 +02:00
console.log('Configuring site details...');
2018-03-13 03:26:03 +01:00
this.analytics = analytics;
this.assetDefaults = assetDefaults;
this.auth = auth;
this.details = details;
this.publishing = publishing;
this.customComponents = customComponents;
this.customContainers = customContainers;
this.customPages = customPages;
this.routes = routes;
2018-03-10 03:30:06 +01:00
};
};
2018-03-10 03:30:06 +01:00
module.exports = new SiteConfig();