John Bampton
9361dc8182
docs: fix spelling ( #3249 )
2021-01-12 09:03:14 +08:00
John Bampton
cacf0634d2
docs: update CONTRIBUTING to include more details on linters ( #3248 )
2021-01-12 09:02:14 +08:00
Yousa
ec5a21bb69
chore: Using local variables instead of global calls ( #3245 )
...
* fix: ngx.req.read_body -> local req_read_body
* ngx.req.get_post_args -> req_get_post_args
2021-01-11 23:04:14 +08:00
罗泽轩
4de254ad27
fix(roundrobin): don't retry a node again ( #3217 )
...
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-11 22:25:53 +08:00
罗泽轩
fa029d429d
fix: create the health checker in access
phase ( #3240 )
...
Allow to call yield function in the healthcheck.
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
Co-authored-by: YuanSheng Wang <membphis@gmail.com>
Fix #1851
Fix #2842
2021-01-11 21:35:33 +08:00
John Bampton
0ae1691037
chore: enable Markdownlint rule MD002 ( #3234 )
2021-01-11 19:10:53 +08:00
罗泽轩
a2ad12bf47
test: demonstrate http-logger works fine with JSON body ( #3212 )
...
Close #1710
2021-01-11 18:00:24 +08:00
罗泽轩
d030d3c323
ci: simplify the if condition ( #3206 )
2021-01-11 17:53:57 +08:00
dabue
17274295bc
chore: capture the error while create new healthchecker
( #3213 )
...
fix #3169
2021-01-11 16:22:40 +08:00
罗泽轩
9e2e5c8a63
test: make admin/plugins-reload.t stable ( #3192 )
2021-01-11 15:49:11 +08:00
罗泽轩
3dc5cd801e
docs: format CHANGELOG ( #3226 )
2021-01-09 17:08:30 +08:00
tzssangglass
14ebb590a7
chore: tweak the uri to view plug-in types
...
related #3153
2021-01-08 21:16:31 +08:00
罗泽轩
ebd158a858
feat: release version 2.2 ( #3168 )
...
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-08 18:20:48 +08:00
罗泽轩
180c9f3c29
feat: allow empty object of nodes in upstream ( #3219 )
...
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-08 16:20:43 +08:00
Yuelin Zheng
e9db11474a
docs: better doc style for traffic-split plugin. ( #3218 )
2021-01-08 16:14:07 +08:00
罗泽轩
ee122cd048
feat: log when request is blocked by a plugin ( #3214 )
...
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-07 19:45:08 +08:00
shenshaoye
4aeef386f0
feat: support more customize configure in nginx.conf ( #3204 )
...
Co-authored-by: 沈鑫杰 <xinjie.shen@chaitin.com>
related #3203
2021-01-07 19:21:02 +08:00
阿姆斯壮
500e42d4ec
fix: make set_more_retries() work when upstream_type is chash ( #2676 )
2021-01-07 19:19:52 +08:00
Joey
2996416d60
feat: Add create_time and update_time in global_rule schema ( #3201 )
...
* feat: Add create_time and update_time in global_rule schema
Signed-off-by: imjoey <majunjiev@gmail.com>
* Add missing time injection and test cases for that
Signed-off-by: imjoey <majunjiev@gmail.com>
* Revert previous delete test cases for strip_etcd_resp
Signed-off-by: imjoey <majunjiev@gmail.com>
2021-01-07 13:01:09 +08:00
Peter Zhu
7b5d2eae26
feat: use luasocket instead of curl in etcd.lua ( #2965 )
...
fix : #2818
fix : #2718
2021-01-07 09:14:17 +08:00
John Bampton
7c5df5d343
docs: lint Markdown ( #3178 )
2021-01-06 11:06:43 +08:00
John Bampton
58b0366c83
fix(CI): roll our own linter for YAML ( #3196 )
...
Due to the ASF's policies changing we cannot use the original GitHub Actions for linting as they are not approved
Lint Markdown for rules:
- MD012/no-multiple-blanks
- MD032/blanks-around-lists
2021-01-06 09:38:28 +08:00
dabue
2b18cccf47
ci: update the title of ci ( #3172 )
...
fix #3167
2021-01-05 21:08:14 +08:00
idbeta
ad4a222403
docs: sync English version ( #2605 )
...
fix #2583
2021-01-05 12:22:46 +08:00
罗泽轩
cc884f1207
feat(cli): parse IPv6 resolver address ( #3187 )
...
Fix #3186 .
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-05 11:01:17 +08:00
Jens Keiner
67df073ed4
feat: Make headers to add to request in openid-connect plugin configurable. ( #2903 )
2021-01-05 10:14:37 +08:00
Brandon Fergerson
05b1db7f53
feat: support var in upstream_uri on proxy-rewrite plugin ( #3139 )
2021-01-05 10:11:09 +08:00
罗泽轩
3b69b644a4
refactor: no need to provide two common files under http/ ( #3183 )
...
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-05 09:08:17 +08:00
罗泽轩
8d323a2216
feat: add consumer plugin validation at DP side ( #3185 )
2021-01-05 08:58:36 +08:00
YuanSheng Wang
151d74fd9c
chore: enable plugin server-info
by default. ( #3170 )
...
Co-authored-by: spacewander <spacewanderlzx@gmail.com>
2021-01-04 20:18:21 +08:00
nic-chen
4f6fce362d
fix: use config_util.iterate_values
to avoid error by using invalid data type as table ( #3173 )
2021-01-04 19:52:53 +08:00
罗泽轩
4a0707ac28
fix: set ngx.ctx
to nil will corrupt the inner ngx_lua_ctx_tables ( #3182 )
...
And it doesn't free the reference which is actually controlled in C
land.
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-04 18:03:40 +08:00
行者
bb629bc7eb
docs: Fix character error at plugin, style output error, and link cannot be used ( #3176 )
2021-01-04 09:13:08 +08:00
John Bampton
b72e2c56be
docs: lint Markdown files ( #3177 )
...
Lint Markdown for rules:
- MD031/blanks-around-fences
- MD032/blanks-around-lists
2021-01-03 11:26:40 +08:00
罗泽轩
65579fc45b
feat: allow host with underscore ( #3165 )
2020-12-31 11:48:54 +08:00
qwxingzhe
0365fb880c
docs: Add plugin list and detail acquisition interface ( #3156 )
2020-12-31 09:11:10 +08:00
罗泽轩
13ab4903b4
chore: improve HTTPS doc ( #3149 )
2020-12-30 22:57:00 +08:00
罗泽轩
81c1c7c077
change: don't treat route segment with ':' as parameter by default ( #3154 )
...
Fix #3134
2020-12-30 22:13:05 +08:00
qwxingzhe
b80020e632
docs: added interface to get list part for Admin API ( #3138 )
2020-12-29 23:22:02 +08:00
tzssangglass
0597c57b27
chore: tweak the uri to view plug-in types ( #3153 )
2020-12-29 15:55:53 +08:00
罗泽轩
b7ae14c4b6
docs: use new badges ( #3150 )
...
We don't run CI on travis anymore.
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2020-12-29 14:48:23 +08:00
Yuelin Zheng
9b5fa0b4c4
test: limit-count add more test cases to cover the case where the upstream is a domain name ( #3140 )
...
close #3108
2020-12-29 11:25:25 +08:00
tzssangglass
a54aad1ad3
feat: provide the ability to view plug-in types ( #2886 )
...
Fix #2308
2020-12-29 11:01:12 +08:00
罗泽轩
078a0626b2
docs: mention iresty/test-nginx should be used ( #3119 )
2020-12-28 21:48:24 +08:00
罗泽轩
b1e5edd7d8
tests: fix unstable test in traffic-split.t ( #3135 )
...
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2020-12-28 20:55:29 +08:00
dabue
6dba053c08
update server-info.t ( #3143 )
...
related #3095
2020-12-28 20:51:56 +08:00
Yuelin Zheng
c4180ccbf9
feat: the proxy-rewrite plugin support pass nginx variable within header ( #3144 )
...
related #3117
2020-12-28 20:42:47 +08:00
罗泽轩
45e909a0b1
ci: pass again ( #3141 )
...
Previously CI is failed because of some policy change of Apache
Foundation.
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2020-12-28 11:21:16 +08:00
罗泽轩
53777519b8
fix: correct the validation of route.vars ( #3124 )
...
Previously only the type is applied, and it is too strict.
And now we should allow 4 items in the vars expression.
Fix #3123
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2020-12-27 12:02:31 +08:00
John Bampton
e5c1c5984a
docs: lint Markdown and remove unneeded rules ( #3132 )
...
Lint Markdown for:
- MD030 Spaces after list markers
2020-12-27 09:57:27 +08:00