Commit Graph

35 Commits

Author SHA1 Message Date
Henry Wang 54d07cb85c Add http basic authentication (#584)
* Add http basic authentication

closes #560

* Add docs

* Add http basic authentication middleware

* Minor update

* Move settings to config.js
2018-08-31 10:46:17 +08:00
叡山电车 b83a6786fb Fix (#546)
fix issue #544
2018-08-27 23:00:01 +08:00
DIYgod d750ffa963
app: sentry track req 2018-08-21 18:19:20 +08:00
DIYgod ac42d919c5
app: support sentry tracker 2018-08-21 18:00:03 +08:00
DIYgod b4133e6005
rss: limit param 2018-07-29 02:20:58 +08:00
DIYgod 09a616d2b8
app: return 500 -> 404 when error happens 2018-06-03 00:18:36 +08:00
DIYgod 46feb2a1ce
app: wrap error message in <pre> 2018-06-02 19:42:02 +08:00
DIYgod f5b4874ba7
app: move some variables outside module.exports for a better performance 2018-06-02 17:31:33 +08:00
DIYgod 2f9fc20285
app: cut Cache-Control header in half 2018-06-02 17:24:54 +08:00
DIYgod 36e565d388
app: add Cache-Control header 2018-06-02 17:22:56 +08:00
DIYgod 16bc48b723
docs: rename 2018-06-02 16:50:09 +08:00
DIYgod 0ca3b9b07f
app: access contorl 2018-06-02 16:39:52 +08:00
DIYgod b12e45fa2a
app: more precise template typeRegrx 2018-05-24 16:22:14 +08:00
tgly307 ead78bbd89 添加exclude过滤功能 (#186)
* 知乎日报全文rss

* reverse router.js

* 知乎日报当天全文rss

* Update daily.js

去除JSON处理方法,添加对redis的异步get兼容,统一缓存保留时间。

* git ignore

* 即刻topic广场信息

* Delete .gitignore

* Revert "Merge branch 'master' into master"

This reverts commit d2acb89f0b243c9313266f4cf959db4f37935db8, reversing
changes made to 2c401dba0aefc1a9a124c1ba42f5f6c2cc7744f1.

* fix bug

* delete request for topic info

* 把缩略图改成原图

* 添加exclude过滤

* fix md
2018-05-23 14:23:03 +08:00
Liu 0e258bf14d app: use JSON Feed as json format (#179) 2018-05-22 23:18:35 +08:00
DIYgod 88b58a0b80
app: support json format output 2018-05-22 18:53:43 +08:00
阿卡琳 93ff5c61c4 feat(template): add atom.art (#167)
* feat(template): add atom.art

* docs(template): add atom.art

* Update template.js
2018-05-21 14:15:21 +08:00
DIYgod 108f4bf0ce
app: remove empty password 2018-05-18 14:59:04 +08:00
DIYgod 405c2bfd12
app: unify cache set to seconds value 2018-05-18 11:30:29 +08:00
DIYgod c893d1ad17
app: expose cache function to koa context 2018-05-18 01:31:51 +08:00
DIYgod 005670acee
app: debug: add hot ips 2018-05-17 15:48:35 +08:00
DIYgod 77014458d0
app: try to get real client ip 2018-05-17 15:31:50 +08:00
DIYgod 3d57e5ca75
app: debug: add hot routes 2018-05-17 15:01:45 +08:00
DIYgod a96dd28d0b
app: debug info 2018-05-17 12:22:52 +08:00
さくら 49de384d2e feat: add prettier and commit hooks (#144)
* feat: add prettier and commit hooks

* style(*): prettier format

* fix(eslint): parsing error: Unexpected token ...

* style(eslint): eslint --fix

* style(bilibili): fix `no-undef` and `no-unused-vars`

* style(jiandan): fix eqeqeq

* style(pixiv): disable `no-constant-condition` rule for eslint

* fix(pixiv): use template string

* style(toutiao): remove unused variables

* style(weibo): use `forEach` instead of `map`

The array has no return value, you should use `forEach` instead of `map`

* chore(hooks): add eslint hooks

* chore(hooks): switch from husky to yorkie

* style(zhihu): prettier format

* style(docs): fix vuepress custom container

https://vuepress.vuejs.org/guide/markdown.html#custom-containers

* chore(prettier): set a more reasonable `printWidth` value

* style(*): better prettier format
2018-05-17 10:52:29 +08:00
DIYgod 16c32f7824
app: fix redis cache 2018-05-16 01:17:06 +08:00
DIYgod 36ad5f2415
app: welcome page 2018-05-15 01:55:19 +08:00
DIYgod 1fb172045c
generate template after filter for a better performance 2018-05-11 18:50:41 +08:00
DIYgod 4776fa6aba
middleware: filter 2018-05-11 17:10:10 +08:00
eyhn da339cfca5 fix: error message useful for developers 2018-05-06 23:35:48 +08:00
jjeejj f2ec6a0405 fix middleware/utf8.js file bug 2018-05-05 10:21:04 +08:00
u3u a2e8b317ba fix: incorrect `utf-8` characters 2018-04-30 18:22:27 +08:00
DIYgod b8247d1d4f
welcome page 2018-04-18 00:24:36 +08:00
DIYgod 3d2854ad41
support memory cache 2018-04-17 12:11:51 +08:00
DIYgod 3f940a6906
replace express and request with koa and axios 2018-04-16 02:47:09 +08:00