app: add process env CACHE_TYPE CACHE_EXPIRE UA
This commit is contained in:
parent
571adc7636
commit
884bf91e3c
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue