Update
This commit is contained in:
parent
09fd9e9e1c
commit
ca9dd656f2
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue