JewishCat

nginx

Jun 14th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. user wasdcloud;
  2. worker_processes 16;
  3. pid /run/nginx.pid;
  4. error_log /var/log/nginx/error.log;
  5. worker_rlimit_nofile 80000;
  6.  
  7. events {
  8. worker_connections 2048;
  9. use epoll;
  10. # multi_accept on;
  11. }
  12.  
  13. http {
  14.  
  15. ##
  16. # Basic Settings
  17. ##
  18.  
  19. sendfile on;
  20. tcp_nopush on;
  21. tcp_nodelay on;
  22. keepalive_timeout 30;
  23. directio 5m;
  24. expires 2h;
  25. client_header_timeout 60;
  26. send_timeout 10;
  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 off;
  48. error_log /var/log/nginx/error.log;
  49.  
  50. ##
  51. # Gzip Settings
  52. ##
  53.  
  54. gzip on;
  55. gzip_disable "msie6";
  56. #gzip_proxied any;
  57. #gzip_types text/plain application/xml;
  58. gzip_min_length 1000;
  59. gzip_vary on;
  60. gzip_comp_level 3;
  61. gzip_buffers 64 8k;
  62. gzip_http_version 1.1;
  63. gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml;
  64.  
  65. ##
  66. # Virtual Host Configs
  67. ##
  68.  
  69. server{
  70.  
  71. location ~* ^(?!/a2ma/).+\.(jpg|jpeg|gif|png|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|xml|docx|xlsx)$ {
  72. access_log off;
  73. expires 30d;
  74. }
  75. }
  76. include /etc/nginx/conf.d/*.conf;
  77. include /etc/nginx/sites-enabled/*;
  78. }
  79.  
  80. #mail {
  81. # # See sample authentication script at:
  82. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  83. #
  84. # # auth_http localhost/auth.php;
  85. # # pop3_capabilities "TOP" "USER";
  86. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  87. #
  88. # server {
  89. # listen localhost:110;
  90. # protocol pop3;
  91. # proxy on;
  92. # }
  93. #
  94. # server {
  95. # listen localhost:143;
  96. # protocol imap;
  97. # proxy on;
  98. # }
  99. #}
Add Comment
Please, Sign In to add comment