gitea/templates
Rowan Bohde c57304ac3f
Add middleware for request prioritization (#33951)
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>
2025-04-14 16:25:48 +02:00
..
admin Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
api/packages/pypi Fix links in PyPI Simple Repository API page (#30594) 2024-04-20 01:15:14 +00:00
base Prepare common tmpl functions in a middleware (#33957) 2025-03-25 06:17:58 +00:00
custom
devtest Refactor dropdown ellipsis (#34123) 2025-04-05 03:21:11 +00:00
explore Fix span svg layout (#34185) 2025-04-13 12:44:57 +08:00
mail
org refactor organization menu (#33928) 2025-04-10 12:12:55 -07:00
package refactor organization menu (#33928) 2025-04-10 12:12:55 -07:00
projects fix(#34076):replace assgniee translation key (#34077) 2025-03-31 19:11:15 +00:00
repo Update protected_branch.tmpl (#34193) 2025-04-14 13:41:00 +00:00
shared Add flat-square action badge style (#34062) 2025-04-01 09:42:10 +00:00
status Add middleware for request prioritization (#33951) 2025-04-14 16:25:48 +02:00
swagger Add package version api endpoints (#34173) 2025-04-13 20:00:44 +00:00
user Update milestones.tmpl (#34184) 2025-04-12 11:34:42 +08:00
webhook
home.tmpl Remove urls from translations (#31950) 2024-09-02 18:36:24 +00:00
install.tmpl Replace text-align classes with tailwind (#33905) 2025-03-16 12:08:16 +00:00
post-install.tmpl Optimize the installation page (#32994) 2024-12-31 04:49:26 +00:00