update nginx example config

This commit is contained in:
HF 2022-10-06 13:38:18 +02:00
parent 9a22be25cc
commit 3f2bb8c530

View File

@ -12,10 +12,6 @@
include /etc/nginx/includes/certbotroot.conf;
location / {
proxy_no_cache 1;
if ($http_user_agent ~* (python-requests)) {
return 503;
}
limit_req zone=general burst=20 delay=10;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 3M;
@ -23,9 +19,7 @@ location / {
}
location = / {
if ($http_user_agent ~* (python-requests)) {
return 503;
}
proxy_no_cache 1;
if ( $query_string ) { return 403; }
limit_req zone=captcha burst=5;
proxy_set_header X-Real-IP $remote_addr;