Advertisement
Guest User

Untitled

a guest
Nov 16th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. user nginx;
  2. worker_processes 1;
  3. worker_rlimit_nofile 65536;
  4.  
  5. error_log /var/log/nginx/error.log warn;
  6. pid /var/run/nginx.pid;
  7.  
  8.  
  9. events {
  10. worker_connections 2048;
  11. }
  12.  
  13.  
  14. http {
  15. include /etc/nginx/mime.types;
  16. default_type application/octet-stream;
  17.  
  18. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  19. '$status $body_bytes_sent "$http_referer" '
  20. '"$http_user_agent" "$http_x_forwarded_for"';
  21.  
  22. #Disable IFRAME
  23. add_header X-Frame-Options SAMEORIGIN;
  24.  
  25. #Prevent Cross-site scripting (XSS) attacks
  26. add_header X-XSS-Protection "1; mode=block";
  27.  
  28. #Prevent MIME-sniffing
  29. add_header X-Content-Type-Options nosniff;
  30.  
  31. access_log off;
  32. sendfile on;
  33. tcp_nopush on;
  34. tcp_nodelay off;
  35. types_hash_max_size 2048;
  36. server_tokens off;
  37. server_names_hash_bucket_size 128;
  38. client_max_body_size 200m;
  39. client_body_buffer_size 256k;
  40. client_body_in_file_only off;
  41. client_body_timeout 60s;
  42. client_header_buffer_size 256k;
  43. client_header_timeout 20s;
  44. large_client_header_buffers 8 256k;
  45. keepalive_timeout 10;
  46. keepalive_disable msie6;
  47. reset_timedout_connection on;
  48. send_timeout 60s;
  49.  
  50. gzip on;
  51. gzip_static on;
  52. gzip_disable "msie6";
  53. gzip_vary on;
  54. gzip_proxied any;
  55. gzip_comp_level 6;
  56. gzip_buffers 16 8k;
  57. gzip_http_version 1.1;
  58. gzip_types text/plain text/css application/json text/javascript application/javascript text/xml application/xml application/xml+rss;
  59.  
  60. include /etc/nginx/conf.d/*.conf;
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement