Updated nginx conf
This commit is contained in:
parent
78a5a2b180
commit
a12aec37b9
@ -151,16 +151,32 @@ data:
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
access_log /var/log/nginx/access.log main;
|
||||
|
||||
limit_req_zone $binary_remote_addr zone=req_limit_per_ip:1m rate=1r/s;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name vlads-notes.jumpingcrab.com;
|
||||
root /www/data;
|
||||
index index.html;
|
||||
error_page 404 /404.html;
|
||||
server_tokens off;
|
||||
|
||||
include mime.types;
|
||||
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
add_header X-Frame-Options DENY;
|
||||
add_header X-XSS-Protection "1; mode=block";
|
||||
add_header Referrer-Policy "no-referrer-when-downgrade";
|
||||
|
||||
location ~ /\. {
|
||||
deny all;
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
}
|
||||
|
||||
location / {
|
||||
limit_req zone=req_limit_per_ip burst=5 nodelay;
|
||||
try_files $uri $uri.html $uri/ =404;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user