This commit is contained in:
Oracle Root 2023-06-06 03:34:03 +00:00
parent 09fd9e9e1c
commit ca9dd656f2
2 changed files with 6 additions and 4 deletions

View File

@ -11,3 +11,8 @@ gzip_types text/plain text/css text/xml application/json application/java
#brotli_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;
location /robots.txt { alias /var/www/html/robots.txt; }
# FUCK SEMRUSH
if ($http_user_agent ~ (SemrushBot)) {
return 403;
}

View File

@ -40,9 +40,7 @@ http {
# Diffie-Hellman parameter for DHE ciphersuites
ssl_dhparam /etc/nginx/dhparam.pem;
# HTTP2 Settings
http2_max_field_size 64k;
http2_max_header_size 512k;
server_names_hash_bucket_size 128;
# Virtual Host Configs
include /etc/nginx/sites-enabled/*.conf;
@ -52,7 +50,6 @@ http {
limit_conn perip 100;
limit_req_zone $binary_remote_addr zone=engine:10m rate=2r/s;
limit_req_zone $binary_remote_addr zone=static:10m rate=100r/s;
# reset timed out connections freeing ram
reset_timedout_connection on;