diff --git a/config.js b/config.js index 2b528ee7a..2239e88f0 100644 --- a/config.js +++ b/config.js @@ -1,8 +1,8 @@ module.exports = { port: process.env.PORT || 1200, - cacheType: 'memory', // support memory and redis, set empty to disable cache - cacheExpire: 5 * 60, - ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36', + cacheType: process.env.CACHE_TYPE || 'memory', // support memory and redis, set empty to disable cache + cacheExpire: process.env.CACHE_EXPIRE || 5 * 60, + ua: process.env.UA || 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36', pixiv: { client_id: 'MOBrBDS8blbauoSck0ZfDbtuzpyT', client_secret: 'lsACyCD94FhDUtGTXi3QzcFE2uU1hqtDaKeqrdwj',