Advertisement
Guest User

Untitled

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