nginx-ultimate-bad-bot-blocker/.dev-tools/_nginx_conf_backup/nginx13.conf
2017-10-04 13:52:03 +02:00

73 lines
1.5 KiB
Text
Executable file

user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 1024;
multi_accept on;
use epoll;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 90s;
keepalive_requests 1000;
server_tokens off;
client_body_buffer_size 32k;
client_header_buffer_size 1k;
client_max_body_size 50M;
types_hash_max_size 2048;
large_client_header_buffers 4 16k;
variables_hash_max_size 2048;
variables_hash_bucket_size 1024;
# Our request limiter zone for wp-login attacks
limit_req_zone $binary_remote_addr zone=wp-login:10m rate=1r/s;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Logging Settings
##
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log warn;
##
# Gzip Settings
##
gzip on;
gzip_disable "MSIE [1-6]\.";
gzip_vary on;
gzip_static on;
gzip_min_length 20;
gzip_proxied expired no-cache no-store private auth;
gzip_comp_level 7;
gzip_buffers 32 4k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}