105 Commits

Author SHA1 Message Date
alsotang
4474a93a4f add redis_password 2016-07-17 18:01:00 +08:00
alsotang
bfeadb3d7a saveUninitialized: false, resave: false 2016-06-17 21:17:58 +08:00
alsotang
85a2b3ed1b Update app.js 2016-06-17 21:11:41 +08:00
alsotang
563f6bcbaa 更精确的打印 2015-12-07 20:16:30 +08:00
alsotang
1f171369bd use log4js 2015-12-07 19:52:06 +08:00
alsotang
e652f25ac7 when upload file reach max size, return friendly error msg. fix #633 2015-11-27 18:06:53 +08:00
alsotang
27b7c6c0c7 update loader 2015-11-21 22:36:40 +08:00
alsotang
5fad4d0e27 update markdown-it to 5.0.2 2015-11-21 21:54:03 +08:00
alsotang
68fe000d9c refactor 2015-11-02 14:53:44 +08:00
alsotang
3ff1a90dd7 use oneapm replace to newrelic 2015-09-15 13:32:13 +08:00
alsotang
46427bc82d fix #546
/api page use csurf
2015-07-21 14:58:54 +08:00
albin3
f8a0ced916 README 线上运行环境 Node.js -> io.js 2015-07-11 20:30:06 +08:00
alsotang
183fed23ca Revert "reformat code"
This reverts commit 5426982f5a128ec271738a51f9366dfd5b05565a.
2015-07-01 15:17:45 +08:00
alsotang
5426982f5a reformat code 2015-07-01 15:15:37 +08:00
alsotang
e2863f0807 fix #541. avoid clickjacking 2015-07-01 14:43:03 +08:00
alsotang
7af10cb573 bodyparser limit 2015-06-05 15:17:57 +08:00
alsotang
505b6b9fe2 打印 mongodb 日志 2015-05-28 11:58:15 +08:00
alsotang
c11b5a5e65 common/logger.js 在不需要打印时,不进行任何计算 2015-05-27 22:40:00 +08:00
alsotang
acd1626d9e Merge commit 'c1ef713a863eaf3000048233b540ce35c44ac42b' 2015-05-27 22:15:25 +08:00
alsotang
4e928d7c43 继续改进代码写法 2015-05-27 21:58:57 +08:00
Jason Lee
15c9768074 Mongoose log add runtime, use mquery TraceFunction (So that need new verion of Mongoose) 2015-05-25 21:09:35 +08:00
Jason Lee
e924ccebd0 Add view render log 2015-05-25 17:35:18 +08:00
Jason Lee
1869473a71 Add mongoose query log 2015-05-25 16:46:40 +08:00
Jason Lee
a459c0b4b0 Add logger;
Add request log for each requests;
Add log for cache get/set;
2015-05-25 14:52:24 +08:00
Jason Lee
7cb8205fe8 对齐等号赋值 2015-05-23 22:43:36 +08:00
Jason Lee
53b2a37b47 给 Response 扩展 render404, renderError 函数,替代之前重复 render 错误页面的代码; 2015-05-23 22:03:31 +08:00
alsotang
b03495bb34 fix err handler 2015-04-09 14:36:55 +08:00
alsotang
4a8b88ffad 500 错误记录 2015-04-08 17:31:43 +08:00
alsotang
2582533a40 去掉每日访问限制 2015-04-04 20:02:24 +08:00
alsotang
67c098202b 两项改进
1. nodejs 层面 ratelimit 加入
2. 缓存用上 redis, 包括 common/cache.js 和 session
2015-04-04 17:29:18 +08:00
alsotang
8d62408b66 avatar 通过服务器代理访问 2015-04-04 15:08:05 +08:00
alsotang
affb633708 提高 router 寻址效率 2015-03-15 18:19:19 +08:00
alsotang
464861afc4 fix #440 2014-11-02 22:50:38 +08:00
alsotang
ae0c3e7a02 hotfix 2014-10-27 20:00:07 +08:00
alsotang
9dc21e8db2 hotfix 2014-10-27 19:51:23 +08:00
alsotang
829a477ee6 remove csurf middleware on '/api/ 2014-10-27 19:49:59 +08:00
alsotang
e90234706d enable all cors requests for /api/v1 2014-10-26 12:53:25 +08:00
alsotang
26a177b25e 重构 router 部分 2014-10-19 18:52:04 +08:00
alsotang
a0a7787e3d remove res.send(stauts, body) usage 2014-10-02 23:32:53 +08:00
alsotang
23242dd6db add more tests 2014-09-27 14:37:01 +08:00
alsotang
d468fea211 add tes for sign controller 2014-09-27 02:01:02 +08:00
alsotang
d04ca65d98 add more tests
* test/controllers/message.test.js
* test/controllers/reply.test.js
* test/support/support.js
2014-09-27 00:10:39 +08:00
alsotang
74ec44d089 remove bugsnag 2014-09-26 13:27:52 +08:00
alsotang
d24a23f708 Revert "verify bugsnag integrated"
This reverts commit 49aa7974deb9b0d10079fec51ad82a0c0e99f193.
2014-09-26 11:56:01 +08:00
alsotang
49aa7974de verify bugsnag integrated 2014-09-26 11:53:40 +08:00
alsotang
aeab6d6fd7 add bugsnag 2014-09-26 01:05:58 +08:00
vfasky
c07345f888 编辑器加上原来的配置
- marked 用回原来的配置
- MongoStore 只保留 url 配置
2014-09-10 10:02:46 +08:00
vfasky
2066d7e1b9 session 的连接,改成读配置文件 2014-09-09 18:14:14 +08:00
alsotang
b55d22f834 必须选择一个版块 2014-09-06 23:05:31 +08:00
alsotang
deb7beae1f 抽象出 commmon/store.js 模块 2014-09-06 18:56:28 +08:00