安装和配置代理服务器可以使用 Nginx ,也可以(测试)使用 proxy、node-http-proxy。
如果使用了代理,需要:
app.enable('trust proxy');
使用 Node 模块 loadtest 做压力测试:
npm i -s loadtest