Advertisement
Guest User

NGINX config

a guest
Jan 23rd, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. user www;
  2. worker_processes 4;
  3.  
  4. events {
  5. worker_connections 2048;
  6. }
  7.  
  8. http {
  9. # Basic Settings
  10. sendfile on;
  11. tcp_nopush on;
  12. tcp_nodelay on;
  13. keepalive_timeout 65;
  14. types_hash_max_size 2048;
  15. client_max_body_size 16m;
  16. client_body_timeout 120s;
  17.  
  18. include /usr/local/etc/nginx/mime.types;
  19. default_type application/octet-stream;
  20.  
  21. # Logging Settings
  22. log_format gzip '$remote_addr - $remote_user [$time_local] '
  23. '"$request" $status $bytes_sent '
  24. '"$http_referer" "$http_user_agent" "$gzip_ratio"';
  25.  
  26. access_log /var/log/nginx/access.log gzip buffer=32k;
  27. error_log /var/log/nginx/error.log notice;
  28.  
  29. # Gzip Settings
  30. gzip on;
  31. gzip_disable "msie6";
  32. gzip_vary on;
  33. gzip_proxied any;
  34. gzip_comp_level 6;
  35. gzip_buffers 16 8k;
  36. gzip_http_version 1.1;
  37. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  38.  
  39. include /usr/local/etc/nginx/sites-enabled/*;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement