Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. user abc;
  2. worker_processes 4;
  3. pid /run/nginx.pid;
  4.  
  5. events {
  6. worker_connections 768;
  7. # multi_accept on;
  8. }
  9.  
  10. http {
  11.  
  12. ##
  13. # Basic Settings
  14. ##
  15.  
  16. sendfile on;
  17. tcp_nopush on;
  18. tcp_nodelay on;
  19. keepalive_timeout 65;
  20. types_hash_max_size 2048;
  21. # server_tokens off;
  22.  
  23. # server_names_hash_bucket_size 64;
  24. # server_name_in_redirect off;
  25.  
  26. client_max_body_size 0;
  27.  
  28. include /etc/nginx/mime.types;
  29. default_type application/octet-stream;
  30.  
  31. ##
  32. # Logging Settings
  33. ##
  34.  
  35. access_log /config/log/nginx/access.log;
  36. error_log /config/log/nginx/error.log;
  37.  
  38. ##
  39. # Gzip Settings
  40. ##
  41.  
  42. gzip on;
  43. gzip_disable "msie6";
  44.  
  45. # gzip_vary on;
  46. # gzip_proxied any;
  47. # gzip_comp_level 6;
  48. # gzip_buffers 16 8k;
  49. # gzip_http_version 1.1;
  50. # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  51.  
  52. ##
  53. # nginx-naxsi config
  54. ##
  55. # Uncomment it if you installed nginx-naxsi
  56. ##
  57.  
  58. #include /etc/nginx/naxsi_core.rules;
  59.  
  60. ##
  61. # nginx-passenger config
  62. ##
  63. # Uncomment it if you installed nginx-passenger
  64. ##
  65.  
  66. #passenger_root /usr;
  67. #passenger_ruby /usr/bin/ruby;
  68.  
  69. ##
  70. # Virtual Host Configs
  71. ##
  72. include /etc/nginx/conf.d/*.conf;
  73. include /config/nginx/site-confs/*;
  74.  
  75. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  76. ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  77. ssl_prefer_server_ciphers on;
  78. ssl_session_cache shared:SSL:10m;
  79. add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
  80. add_header X-Frame-Options SAMEORIGIN;
  81. add_header X-Content-Type-Options nosniff;
  82. add_header X-XSS-Protection "1; mode=block";
  83. add_header X-Robots-Tag none;
  84. ssl_stapling on; # Requires nginx >= 1.3.7
  85. ssl_stapling_verify on; # Requires nginx => 1.3.7
  86.  
  87. }
  88.  
  89.  
  90. #mail {
  91. # # See sample authentication script at:
  92. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  93. #
  94. # # auth_http localhost/auth.php;
  95. # # pop3_capabilities "TOP" "USER";
  96. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  97. #
  98. # server {
  99. # listen localhost:110;
  100. # protocol pop3;
  101. # proxy on;
  102. # }
  103. #
  104. # server {
  105. # listen localhost:143;
  106. # protocol imap;
  107. # proxy on;
  108. # }
  109. #}
  110. daemon off;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement