user nginx; worker_processes auto; error_log /var/log/nginx/error.log notice; pid /run/nginx.pid; events { worker_connections 1024; } http { sendfile on; tcp_nopush on; types_hash_max_size 2048; server_tokens off; real_ip_header X-Forwarded-For; real_ip_recursive on; set_real_ip_from 10.100.0.0/16; include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" host="$host" ' '"$http_user_agent" rt=$request_time ' 'urt=$upstream_response_time ' 'xff="$http_x_forwarded_for"' 'xfp="$http_x_forwarded_proto"'; access_log /var/log/nginx/access.log main; gzip on; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; # gzip_http_version 1.1; gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; include /etc/nginx/conf.d/*.conf; }