From f4407f46ee26f05c7bec11c19847a2308abe5624 Mon Sep 17 00:00:00 2001 From: "srvproxy001.itguys.com.br" Date: Fri, 3 Oct 2025 22:40:21 -0300 Subject: [PATCH] =?UTF-8?q?[Auto-Sync]=20Atualiza=C3=A7=C3=A3o=20das=20con?= =?UTF-8?q?figura=C3=A7=C3=B5es=20em=20srvproxy001.itguys.com.br=20-=20202?= =?UTF-8?q?5-10-03=2022:40:21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/modsecurity/global-exceptions.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nginx/modsecurity/global-exceptions.conf b/nginx/modsecurity/global-exceptions.conf index ed53d5b..610127b 100644 --- a/nginx/modsecurity/global-exceptions.conf +++ b/nginx/modsecurity/global-exceptions.conf @@ -40,7 +40,13 @@ SecRule REQUEST_URI "@rx ^/.*/(src/branch|_edit|_new|commits/branch)/" "id:10008 SecRule REQUEST_URI "@rx ^/.*/.*(raw|assets)/" "id:10011,phase:1,nolog,pass,ctl:ruleEngine=Off" SecRule REQUEST_FILENAME "@rx \.conf$" "id:10013,phase:1,nolog,pass,chain,msg:'[CUSTOM] Whitelist .conf files for Git server'" SecRule SERVER_NAME "@streq git.itguys.com.br" "ctl:ruleRemoveById=930120" - +SecRule REQUEST_URI "@rx ^/[^/]+/[^/]+/upload-file$" \ + "id:10025, \ + phase:1, \ + pass, \ + nolog, \ + ctl:ruleEngine=Off, \ + msg:'TUNING: ModSecurity desativado para a rota de upload de arquivos do Gitea'" # -------------------------------------------------------------------------- # Exceções para o Grafana # --------------------------------------------------------------------------