Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: added configure for anti-ReDoS. #250

Merged
merged 2 commits into from
Jul 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ For more detailed information, see the [White Paper](https://www.iresty.com/down
- **Scalability**
- **High performance**
- **Custom plugins**
- **Anti-ReDoS(Regular expression Denial of Service)**
- **Health Checks**: TODO.
- **Caching**: TODO.
- **Dashboard**: TODO.
Expand Down
1 change: 1 addition & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ APISIX 通过插件机制,提供动态负载平衡、身份验证、限流限
- **可扩展**
- **高性能**
- **自定义插件**
- **防御 ReDoS(正则表达式拒绝服务)**
- **健康检查**: TODO
- **缓存**: TODO.
- **管理控制台**: TODO.
Expand Down
3 changes: 3 additions & 0 deletions bin/apisix
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ http {

lua_http10_buffering off;

lua_regex_match_limit 100000;
lua_regex_cache_max_entries 8192;

log_format main '$remote_addr - $remote_user [$time_local] $http_host "$request" $status $body_bytes_sent $request_time "$http_referer" "$http_user_agent" $upstream_addr $upstream_status $upstream_response_time';

access_log logs/access.log main buffer=32768 flush=3;
Expand Down