2020-05-07 20:44:11 +02:00
|
|
|
// On Web, this will find .env.defaults and optional .env in web/
|
|
|
|
// On Desktop App, this will find .env.defaults and optional .env in root dir
|
2020-07-23 16:22:57 +02:00
|
|
|
require('dotenv-defaults').config({ silent: false });
|
2019-08-23 17:54:08 +02:00
|
|
|
const config = {
|
2020-07-06 23:39:35 +02:00
|
|
|
MATOMO_URL: process.env.MATOMO_URL,
|
|
|
|
MATOMO_ID: process.env.MATOMO_ID,
|
2020-05-07 20:44:11 +02:00
|
|
|
WEBPACK_WEB_PORT: process.env.WEBPACK_WEB_PORT,
|
|
|
|
WEBPACK_ELECTRON_PORT: process.env.WEBPACK_ELECTRON_PORT,
|
|
|
|
WEB_SERVER_PORT: process.env.WEB_SERVER_PORT,
|
2020-07-06 23:39:35 +02:00
|
|
|
LBRY_WEB_API: process.env.LBRY_WEB_API, //api.lbry.tv',
|
2020-08-25 18:08:41 +02:00
|
|
|
LBRY_API_URL: process.env.LBRY_API_URL, //api.lbry.com',
|
2020-07-06 23:39:35 +02:00
|
|
|
LBRY_WEB_STREAMING_API: process.env.LBRY_WEB_STREAMING_API, //cdn.lbryplayer.xyz',
|
2020-08-07 22:59:20 +02:00
|
|
|
LBRY_WEB_BUFFER_API: process.env.LBRY_WEB_BUFFER_API,
|
2020-07-06 23:39:35 +02:00
|
|
|
WELCOME_VERSION: process.env.WELCOME_VERSION,
|
2020-05-07 20:44:11 +02:00
|
|
|
DOMAIN: process.env.DOMAIN,
|
2020-08-29 19:58:38 +02:00
|
|
|
SHARE_DOMAIN_URL: process.env.SHARE_DOMAIN_URL,
|
2020-07-02 03:34:50 +02:00
|
|
|
URL: process.env.URL,
|
2020-05-07 20:44:11 +02:00
|
|
|
SITE_TITLE: process.env.SITE_TITLE,
|
2020-07-02 03:34:50 +02:00
|
|
|
SITE_NAME: process.env.SITE_NAME,
|
2020-07-01 00:44:46 +02:00
|
|
|
SITE_DESCRIPTION: process.env.SITE_DESCRIPTION,
|
2020-05-07 20:44:11 +02:00
|
|
|
LOGO_TITLE: process.env.LOGO_TITLE,
|
2020-07-06 23:39:35 +02:00
|
|
|
OG_TITLE_SUFFIX: process.env.OG_TITLE_SUFFIX,
|
|
|
|
OG_HOMEPAGE_TITLE: process.env.OG_HOMEPAGE_TITLE,
|
|
|
|
OG_IMAGE_URL: process.env.OG_IMAGE_URL,
|
2020-08-26 18:24:07 +02:00
|
|
|
YRBL_HAPPY_IMG_URL: process.env.YRBL_HAPPY_IMG_URL,
|
|
|
|
YRBL_SAD_IMG_URL: process.env.YRBL_SAD_IMG_URL,
|
2020-07-06 23:39:35 +02:00
|
|
|
SITE_CANONICAL_URL: process.env.SITE_CANONICAL_URL,
|
|
|
|
DEFAULT_LANGUAGE: process.env.DEFAULT_LANGUAGE,
|
2020-07-15 00:49:10 +02:00
|
|
|
AUTO_FOLLOW_CHANNELS: process.env.AUTO_FOLLOW_CHANNELS,
|
2020-07-31 20:24:01 +02:00
|
|
|
UNSYNCED_SETTINGS: process.env.UNSYNCED_SETTINGS,
|
2020-07-24 20:00:17 +02:00
|
|
|
SIMPLE_SITE: process.env.SIMPLE_SITE === 'true',
|
2020-08-03 22:14:43 +02:00
|
|
|
SHOW_ADS: process.env.SHOW_ADS === 'true',
|
2020-05-07 20:44:11 +02:00
|
|
|
PINNED_URI_1: process.env.PINNED_URI_1,
|
|
|
|
PINNED_LABEL_1: process.env.PINNED_LABEL_1,
|
|
|
|
PINNED_URI_2: process.env.PINNED_URI_2,
|
|
|
|
PINNED_LABEL_2: process.env.PINNED_LABEL_2,
|
2019-08-23 17:54:08 +02:00
|
|
|
};
|
|
|
|
|
2019-11-20 21:57:38 +01:00
|
|
|
config.URL_LOCAL = `http://localhost:${config.WEB_SERVER_PORT}`;
|
|
|
|
config.URL_DEV = `http://localhost:${config.WEBPACK_WEB_PORT}`;
|
2019-08-23 17:54:08 +02:00
|
|
|
|
|
|
|
module.exports = config;
|