From 2a9cceecbf3126d36e9e264691e52607cd0ea488 Mon Sep 17 00:00:00 2001 From: Evangelos Foutras <evangelos@foutrelis.com> Date: Sat, 30 Jul 2022 15:20:12 +0300 Subject: [PATCH] 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. --- roles/aurweb/templates/nginx.d.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/aurweb/templates/nginx.d.conf.j2 b/roles/aurweb/templates/nginx.d.conf.j2 index 055547b73..891bd7534 100644 --- a/roles/aurweb/templates/nginx.d.conf.j2 +++ b/roles/aurweb/templates/nginx.d.conf.j2 @@ -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; -- GitLab