itsky365
itsky365
本地开发egg项目,先前用的是 koa-proxy2 代理配置,可是代码迁移至eggjs中,不知道如何设置?求解。 部分示例代码如下: ``` import koa from 'koa'; // koa-proxy2 兼容koa1的实现,生产环境采用nginx代理 import proxy from 'koa-proxy2'; let app = new koa(); const bizHttp = 'http://192.168.10.11'; // proxy代理配置 app.use(proxy({ proxy_rules: [{...
本地post方法发送数据至接口,一直报错 Request URL:http://localhost:2017/pubshow/login Request Method:POST Status Code:403 Forbidden Remote Address:127.0.0.1:2017 **Response Headers** Connection:keep-alive Content-Length:32 Content-Type:application/json; charset=utf-8 Date:Wed, 15 Feb 2017 07:23:35 GMT Server:openresty/1.11.2.2 **Request Headers** Accept:application/json, text/plain, */* Accept-Encoding:gzip, deflate,...
* **Node Version**: 6.9.4 npm 4.1.1 * **Egg Version**: 0.12.0 * **Plugin Name**: * **Plugin Version**: * **Platform**: centos egg.js部署在alpha环境下,发现时常出现卡的现象,首次卡差不多在5-20秒之间。查看日志记录如下: * egg-web.log ``` 2017-02-27 10:40:19,002 INFO 25022 [tcp-base] the connection:...