mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-15 21:45:35 +08:00
This adds a middleware for overload protection that is intended to help protect against malicious scrapers. It does this via [`codel`](https://github.com/bohde/codel), which will perform the following: 1. Limit the number of in-flight requests to some user-defined max 2. When in-flight requests have reached their begin queuing requests. Logged-in requests having priority above logged-out requests 3. Once a request has been queued for too long, it has a probabilistic chance to be rejected based on how overloaded the entire system is. When a server experiences more traffic than it can handle, this keeps latency low for logged-in users and rejects just enough requests from logged-out users to not overload the service. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io> |
||
|---|---|---|
| .. | ||
| locale_cs-CZ.ini | ||
| locale_de-DE.ini | ||
| locale_el-GR.ini | ||
| locale_en-US.ini | ||
| locale_es-ES.ini | ||
| locale_fa-IR.ini | ||
| locale_fi-FI.ini | ||
| locale_fr-FR.ini | ||
| locale_ga-IE.ini | ||
| locale_hu-HU.ini | ||
| locale_id-ID.ini | ||
| locale_is-IS.ini | ||
| locale_it-IT.ini | ||
| locale_ja-JP.ini | ||
| locale_ko-KR.ini | ||
| locale_lv-LV.ini | ||
| locale_nl-NL.ini | ||
| locale_pl-PL.ini | ||
| locale_pt-BR.ini | ||
| locale_pt-PT.ini | ||
| locale_ru-RU.ini | ||
| locale_si-LK.ini | ||
| locale_sk-SK.ini | ||
| locale_sv-SE.ini | ||
| locale_tr-TR.ini | ||
| locale_uk-UA.ini | ||
| locale_zh-CN.ini | ||
| locale_zh-HK.ini | ||
| locale_zh-TW.ini | ||
| TRANSLATORS | ||