Advertisement
zevilz

nginx.conf

Oct 4th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. user www-data;
  2. worker_processes 1;
  3. pid /run/nginx.pid;
  4. timer_resolution 100ms;
  5. worker_rlimit_nofile 8192;
  6. worker_priority -5;
  7.  
  8. events {
  9. worker_connections 1024;
  10. }
  11.  
  12. http {
  13. client_max_body_size 100m;
  14. server_names_hash_bucket_size 64;
  15. sendfile on;
  16. tcp_nopush on;
  17. tcp_nodelay on;
  18. keepalive_timeout 65;
  19. types_hash_max_size 2048;
  20.  
  21. include /etc/nginx/mime.types;
  22. default_type application/octet-stream;
  23.  
  24. ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  25. ssl_prefer_server_ciphers on;
  26.  
  27. access_log /var/log/nginx/access.log;
  28. error_log /var/log/nginx/error.log;
  29. log_format main '$remote_addr - $remote_user [$time_local] "$http_host" "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for"';
  30.  
  31. gzip on;
  32. gzip_disable "msie6";
  33. gzip_vary on;
  34. gzip_proxied any;
  35. gzip_comp_level 6;
  36. gzip_buffers 16 8k;
  37. gzip_http_version 1.1;
  38. gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  39.  
  40. include /etc/nginx/conf.d/*.conf;
  41. include /etc/nginx/sites-enabled/*;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement