Advertisement
drsheff

Untitled

Jan 24th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. http {
  2. include /etc/nginx/conf.d/*.conf;
  3. include /etc/nginx/sites-enabled/*.conf;
  4.  
  5. include /etc/nginx/mime.types;
  6. default_type application/octet-stream;
  7.  
  8. keepalive_timeout 30;
  9. keepalive_requests 100;
  10.  
  11. client_max_body_size 200m;
  12. client_body_timeout 10;
  13. reset_timedout_connection on;
  14. send_timeout 2;
  15. sendfile on;
  16. tcp_nodelay on;
  17. tcp_nopush on;
  18.  
  19. gzip on;
  20. gzip_disable "msie6";
  21. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
  22.  
  23. open_file_cache max=200000 inactive=20s;
  24. open_file_cache_valid 30s;
  25. open_file_cache_min_uses 2;
  26. open_file_cache_errors on;
  27.  
  28. log_format json '{ "@timestamp": "$time_iso8601", '
  29. '"remote_addr": "$remote_addr", '
  30. '"body_bytes_sent": "$body_bytes_sent", '
  31. '"status": $status, '
  32. '"request": "$request", '
  33. '"url": "$uri", '
  34. '"request_method": "$request_method", '
  35. '"http_referrer": "$http_referer", '
  36. '"http_user_agent": "$http_user_agent" }';
  37.  
  38. access_log /var/log/nginx/access.log;
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement