|
@ -89,6 +89,12 @@ module.exports = {
|
|||
desc: 'github的访问速度分析上传,没有必要,直接返回成功'
|
||||
}
|
||||
},
|
||||
'v2ex.com': {
|
||||
'.*': {
|
||||
proxy: 'v2ex.com',
|
||||
sni: 'baidu.com'
|
||||
}
|
||||
},
|
||||
// google cdn
|
||||
'www.google.com': {
|
||||
'/recaptcha/.*': { proxy: 'www.recaptcha.net' }
|
||||
|
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 577 B After Width: | Height: | Size: 961 B |
Before Width: | Height: | Size: 949 B After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.8 KiB |
|
@ -34,10 +34,15 @@ function registerProcessListener () {
|
|||
log.info('Unhandled Rejection at: Promise', p, 'err:', err)
|
||||
// application specific logging, throwing an error, or other logic here
|
||||
})
|
||||
|
||||
process.on('uncaughtExceptionMonitor', (err, origin) => {
|
||||
log.info('uncaughtExceptionMonitor:', err, origin)
|
||||
})
|
||||
process.on('exit', function (code) {
|
||||
log.info('代理服务进程被关闭:', code)
|
||||
})
|
||||
process.on('beforeExit', (code) => {
|
||||
console.log('Process beforeExit event with code: ', code)
|
||||
})
|
||||
}
|
||||
|
||||
const api = {
|
||||
|
|