Guest User

nginx.conf

a guest
May 18th, 2017
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # For more information on configuration, see:
  2. # * Official English Documentation: http://nginx.org/en/docs/
  3. # * Official Russian Documentation: http://nginx.org/ru/docs/
  4.  
  5. user nginx;
  6. worker_processes 1;
  7.  
  8. error_log /var/log/nginx/error.log;
  9. #error_log /var/log/nginx/error.log notice;
  10. #error_log /var/log/nginx/error.log info;
  11.  
  12. pid /run/nginx.pid;
  13.  
  14. events {
  15. worker_connections 1024;
  16. }
  17.  
  18.  
  19. http {
  20. include /etc/nginx/mime.types;
  21. default_type application/octet-stream;
  22.  
  23. # As described in: https://cipherli.st/
  24. # ssl_ciphers "AES128+EECDH:AES128+EDH";
  25. # ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  26. # ssl_prefer_server_ciphers on;
  27. # ssl_session_cache shared:SSL:10m;
  28. # add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  29. add_header X-Frame-Options DENY;
  30. add_header X-Content-Type-Options nosniff;
  31. ssl_session_tickets off;
  32. #ssl_stapling on; # Requires nginx >= 1.3.7
  33. #ssl_stapling_verify on; # Requires nginx => 1.3.7
  34. # resolver $DNS-IP-1 $DNS-IP-2 valid=300s;
  35. resolver_timeout 5s;
  36.  
  37. server_tokens off;
  38.  
  39. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  40. '$status $body_bytes_sent "$http_referer" '
  41. '"$http_user_agent" "$upstream_addr" '
  42. '"$server_port" "$request_time" cache=$upstream_cache_status';
  43.  
  44.  
  45. access_log /var/log/nginx/access.log main;
  46.  
  47. sendfile on;
  48. #tcp_nopush on;
  49.  
  50. #keepalive_timeout 0;
  51. keepalive_timeout 65;
  52.  
  53. #gzip on;
  54.  
  55. index index.html index.htm;
  56.  
  57. # Load modular configuration files from the /etc/nginx/conf.d directory.
  58. # See http://nginx.org/en/docs/ngx_core_module.html#include
RAW Paste Data Copied