Skip to content
Snippets Groups Projects
Verified Commit 2a9cceec authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

aurweb: increase burst size for smartgit endpoint

The burst size of 300 reportedly allows ~150 git operations. This might
not always be sufficient when installing a lot of packages from the AUR.

Specify a higher burst size to cover most legit use cases, even if this
makes us more susceptible to abuse.
parent f45c7dfd
No related branches found
No related tags found
1 merge request!611aurweb: increase burst size for smartgit endpoint
Pipeline #23866 passed
......@@ -52,7 +52,7 @@ server {
}
location ~ "^/([a-z0-9][a-z0-9.+_-]*?)(\.git)?/(git-(receive|upload)-pack|HEAD|info/refs|objects/(info/(http-)?alternates|packs)|[0-9a-f]{2}/[0-9a-f]{38}|pack/pack-[0-9a-f]{40}\.(pack|idx))$" {
limit_req zone=aurwebgitlimit burst=300 nodelay;
limit_req zone=aurwebgitlimit burst=900 nodelay;
include uwsgi_params;
uwsgi_pass smartgit;
uwsgi_modifier1 9;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment