Advertisement
Guest User

Untitled

a guest
Feb 12th, 2019
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. user www-data;
  2. pid /run/nginx.pid;
  3.  
  4. worker_processes 1;
  5. daemon off;
  6.  
  7. events {
  8. worker_connections 768;
  9. # multi_accept on;
  10. }
  11.  
  12. http {
  13. client_max_body_size 20M;
  14. ##
  15. # Basic Settings
  16. ##
  17.  
  18. sendfile on;
  19. tcp_nopush on;
  20. tcp_nodelay on;
  21. keepalive_timeout 65;
  22. types_hash_max_size 2048;
  23. # server_tokens off;
  24.  
  25. # server_names_hash_bucket_size 64;
  26. # server_name_in_redirect off;
  27.  
  28. include /etc/nginx/mime.types;
  29. default_type application/octet-stream;
  30.  
  31. ##
  32. # SSL Settings
  33. ##
  34.  
  35. ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  36. ssl_prefer_server_ciphers on;
  37.  
  38. ##
  39. # Logging Settings
  40. ##
  41.  
  42. access_log /var/log/nginx/access.log;
  43. error_log /var/log/nginx/error.log;
  44.  
  45. ##
  46. # Gzip Settings
  47. ##
  48.  
  49. gzip on;
  50. gzip_disable "msie6";
  51.  
  52. gzip_vary on;
  53. gzip_proxied any;
  54. gzip_comp_level 6;
  55. gzip_buffers 16 8k;
  56. gzip_http_version 1.1;
  57. gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  58.  
  59. ##
  60. # Virtual Host Configs
  61. ##
  62.  
  63. include /etc/nginx/conf.d/*.conf;
  64. include /etc/nginx/sites-enabled/*;
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement