From 8b6882b614c326080d3738508f630f84cb7e9646 Mon Sep 17 00:00:00 2001 From: OldHawk Date: Wed, 7 Mar 2018 15:39:57 +0800 Subject: [PATCH] cfg(core): config global settings --- config/env/default.js | 6 +++--- config/env/development.js | 8 ++++---- config/env/production.js | 8 ++++---- config/env/torrents.js | 24 ++++++++++++------------ 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/config/env/default.js b/config/env/default.js index 37619983..779f525e 100644 --- a/config/env/default.js +++ b/config/env/default.js @@ -11,10 +11,10 @@ module.exports = { promise: global.Promise }, port: process.env.PORT || 3000, - host: process.env.HOST || '0.0.0.0', + host: process.env.HOST || '127.0.0.1', // DOMAIN config should be set to the fully qualified application accessible // URL. For example: https://www.myapp.com (including port if required). - domain: process.env.DOMAIN || 'chd.im', + domain: process.env.DOMAIN || 'mean.im', // Session Cookie settings sessionCookie: { // session expiration is set by default to 24 hours @@ -42,7 +42,7 @@ module.exports = { }, logo: 'modules/core/client/img/brand/logo.png', favicon: 'modules/core/client/img/brand/favicon.ico', - illegalUsernames: ['meanjs', 'administrator', 'password', 'admin', 'user', + illegalUsernames: ['meanjs', 'administrator', 'password', 'admin', 'user', 'mean', 'meanTorrent', 'torrent', 'bit', 'bits', 'oper', 'operator', 'unknown', 'anonymous', 'null', 'undefined', 'api' ], aws: { diff --git a/config/env/development.js b/config/env/development.js index f9930c9b..eac0f0ce 100644 --- a/config/env/development.js +++ b/config/env/development.js @@ -57,12 +57,12 @@ module.exports = { sandbox: true }, mailer: { - from: process.env.MAILER_FROM || 'admin@chd.im', + from: process.env.MAILER_FROM || 'admin@mean.im', options: { - service: process.env.MAILER_SERVICE_PROVIDER || 'Gmail', + service: process.env.MAILER_SERVICE_PROVIDER || 'service name like as: Gmail', auth: { - user: process.env.MAILER_EMAIL_ID || 'taobataoma@gmail.com', - pass: process.env.MAILER_PASSWORD || 'ykyghbmpjfdliyph' + user: process.env.MAILER_EMAIL_ID || 'example@gmail.com', + pass: process.env.MAILER_PASSWORD || 'mail password' } } }, diff --git a/config/env/production.js b/config/env/production.js index f47fbe57..b0678d63 100644 --- a/config/env/production.js +++ b/config/env/production.js @@ -79,12 +79,12 @@ module.exports = { sandbox: false }, mailer: { - from: process.env.MAILER_FROM || 'admin@chd.im', + from: process.env.MAILER_FROM || 'admin@mean.im', options: { - service: process.env.MAILER_SERVICE_PROVIDER || 'Gmail', + service: process.env.MAILER_SERVICE_PROVIDER || 'service name like as: Gmail', auth: { - user: process.env.MAILER_EMAIL_ID || 'taobataoma@gmail.com', - pass: process.env.MAILER_PASSWORD || 'ykyghbmpjfdliyph' + user: process.env.MAILER_EMAIL_ID || 'example@gmail.com', + pass: process.env.MAILER_PASSWORD || 'mail password' } } }, diff --git a/config/env/torrents.js b/config/env/torrents.js index 69db6a2b..33017f47 100644 --- a/config/env/torrents.js +++ b/config/env/torrents.js @@ -26,8 +26,8 @@ module.exports = { * if web server used proxyPass setting, this should set to false */ app: { - name: 'CHD.im', - domain: 'http://chd.im', + name: 'MEAN.im', + domain: 'http://MEAN.im', showDemoWarningPopup: true, cronTimeZone: 'Asia/Shanghai', showDebugLog: true, @@ -96,8 +96,8 @@ module.exports = { url: '/announce', comment: 'meanTorrent group', announceInterval: 60 * 1000 * 5, - announcePrefix: '{CHD.im}.', - admin: 'admin@chd.im', + announcePrefix: '{MEAN.im}.', + admin: 'admin@MEAN.im', clientBlackListUrl: '/about/black', privateTorrentCmsMode: true, downloadCheck: { @@ -137,8 +137,8 @@ module.exports = { title: '[%s] - RSS torrents', description: 'Latest torrents from [%s]', copyright: 'Copyright (c) [%s] 2012-2017, all rights reserved', - managingEditor: 'admin@chd.im (%s Admin)', - webMaster: 'webmaster@chd.im (%s Webmaster)', + managingEditor: 'admin@MEAN.im (%s Admin)', + webMaster: 'webmaster@MEAN.im (%s Webmaster)', generator: 'meanTorrent RSS Generator', ttl: 60, image_url: '/modules/core/client/img/rss.jpeg' @@ -193,12 +193,12 @@ module.exports = { ircAnnounce: { enable: true, debug: false, - server: 'chd.im', + server: 'MEAN.im', port: 16667, - nick: 'chdAnnounce', + nick: 'Announcer', userName: 'meanTorrent', realName: 'IRC announce client', - channel: '#chdAnnounce', + channel: '#meanAnnounce', defaultMsgFormat: '%s uploaded - torrent: %s, type: %s, size: %d, sale: %s, url: %s, at %s', tvserialMsgFormat: '%s uploaded - torrent: %s, type: %s, size: %d, seasons: %d, episodes: %s, sale: %s, url: %s, at %s', showErrors: true, @@ -959,10 +959,10 @@ module.exports = { * * movie info web www.themoviedb.com settings * + * @key: access key fro TMDB, when u first install and runing this system, please register a key from TMDB and replace here * @tmdbHome: TMDB website home link url * @tmdbMovieLinkUrl: linked url, link to movie detail info page, system get movie detail info from here * @tmdbTvserialLinkUrl: linked url, link to tv serial detail info page, system get tv serial detail info from here - * @key: access key fro TMDB, when u first install and runing this system, please register a key from TMDB and replace here * @backdropImgBaseUrl: image link url * @backdropImgBaseUrl_300: image link url * @backdropImgBaseUrl_780: image link url @@ -971,10 +971,10 @@ module.exports = { * @castImgBaseUrl: image link url */ tmdbConfig: { + key: 'api key from tmdb', tmdbHome: 'https://www.themoviedb.org', tmdbMovieLinkUrl: 'https://www.themoviedb.org/movie/', tmdbTvserialLinkUrl: 'https://www.themoviedb.org/tv/', - key: '7888f0042a366f63289ff571b68b7ce0', backdropImgBaseUrl: 'http://image.tmdb.org/t/p/w1280', backdropImgBaseUrl_300: 'http://image.tmdb.org/t/p/w300', backdropImgBaseUrl_780: 'http://image.tmdb.org/t/p/w780', @@ -1004,7 +1004,7 @@ module.exports = { */ voteTitle: { imdb: 'IMDB', - mt: 'CHD' + mt: 'MEAN' }, /**