Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http {
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*.conf;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- keepalive_timeout 30;
- keepalive_requests 100;
- client_max_body_size 200m;
- client_body_timeout 10;
- reset_timedout_connection on;
- send_timeout 2;
- sendfile on;
- tcp_nodelay on;
- tcp_nopush on;
- gzip on;
- gzip_disable "msie6";
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
- open_file_cache max=200000 inactive=20s;
- open_file_cache_valid 30s;
- open_file_cache_min_uses 2;
- open_file_cache_errors on;
- log_format json '{ "@timestamp": "$time_iso8601", '
- '"remote_addr": "$remote_addr", '
- '"body_bytes_sent": "$body_bytes_sent", '
- '"status": $status, '
- '"request": "$request", '
- '"url": "$uri", '
- '"request_method": "$request_method", '
- '"http_referrer": "$http_referer", '
- '"http_user_agent": "$http_user_agent" }';
- access_log /var/log/nginx/access.log;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement