From ca9dd656f2e391dc0c14ca9f8278522ebbe44d6f Mon Sep 17 00:00:00 2001 From: Oracle Root Date: Tue, 6 Jun 2023 03:34:03 +0000 Subject: [PATCH] Update --- nginx/configs/general.conf | 5 +++++ nginx/nginx.conf | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/nginx/configs/general.conf b/nginx/configs/general.conf index 4483f8d..ba07614 100644 --- a/nginx/configs/general.conf +++ b/nginx/configs/general.conf @@ -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; +} diff --git a/nginx/nginx.conf b/nginx/nginx.conf index d311a46..ad41ec9 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -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;