Advertisement
hotleadsingerguy

nginx.conf

Apr 30th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. user www-data;
  2. worker_processes auto;
  3. worker_rlimit_nofile 100000;
  4. pid /run/nginx.pid;
  5.  
  6. events {
  7. worker_connections 4000;
  8. use epoll;
  9. multi_accept on;
  10. }
  11.  
  12. http {
  13.  
  14. ##
  15. # Basic Settings
  16. ##
  17.  
  18. sendfile on;
  19. tcp_nopush on;
  20. tcp_nodelay on;
  21.  
  22. gzip on;
  23. gzip_disable "msie6";
  24. gzip_min_length 10240;
  25. gzip_proxied expired no-cache no-store private auth;
  26. gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml;
  27. keepalive_timeout 65;
  28. #types_hash_max_size 2048;
  29. # server_tokens off;
  30.  
  31. # server_names_hash_bucket_size 64;
  32. # server_name_in_redirect off;
  33.  
  34. include /etc/nginx/mime.types;
  35. default_type application/octet-stream;
  36.  
  37. ##
  38. # SSL Settings
  39. ##
  40.  
  41. #ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  42. #ssl_prefer_server_ciphers on;
  43.  
  44. ##
  45. # Logging Settings
  46. ##
  47.  
  48. #access_log /var/log/nginx/access.log;
  49. #error_log /var/log/nginx/error.log;
  50.  
  51. ##
  52. # Virtual Host Configs
  53. ##
  54.  
  55. include /etc/nginx/conf.d/*.conf;
  56. include /etc/nginx/sites-enabled/*;
  57.  
  58. server {
  59. #Websockets
  60. #proxy_http_version 1.1;
  61. #proxy_set_header Upgrade $http_upgrade;
  62. #proxy_set_header Connection "";
  63.  
  64. #Buffering off
  65. #proxy_redirect off;
  66. #proxy_buffering on;
  67. }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement