Advertisement
gayanov

Untitled

Nov 11th, 2019
969
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 2.50 KB | None | 0 0
  1. user www-data;
  2. pid /run/nginx.pid;
  3.  
  4. worker_processes auto;
  5. worker_rlimit_nofile 50000;
  6.  
  7. events {
  8.     worker_connections 30000;
  9.     #worker_connections 8192;
  10.     # multi_accept on;
  11. }
  12.  
  13. http {
  14.         ##
  15.         # Basic Settings
  16.         ##
  17.         lua_load_resty_core off;
  18.         server_tokens off;
  19.        
  20.         sendfile on;
  21.         send_timeout 2;
  22.        
  23.         tcp_nodelay on;
  24.         tcp_nopush on;
  25.        
  26.         keepalive_timeout 30;
  27.         keepalive_requests 1000;
  28.         types_hash_max_size 4096;
  29.         client_body_timeout 10;
  30.  
  31.  
  32.         fastcgi_cache_path /var/cache/fpm levels=1:2 keys_zone=fcgi:100m inactive=60m;
  33.         fastcgi_cache_key "$scheme$request_method$host$request_uri";
  34.  
  35.         #limit_req_zone $binary_remote_addr zone=perip:60m rate=60r/s;
  36.         #limit_req_zone $server_name zone=perserver:60m rate=60r/s;
  37.  
  38.         # server_names_hash_bucket_size 64;
  39.         # server_name_in_redirect off;
  40.  
  41.         include /etc/nginx/mime.types;
  42.         default_type application/octet-stream;
  43.  
  44.         ##
  45.         # SSL Settings
  46.         ##
  47.  
  48.         ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  49.         ssl_prefer_server_ciphers on;
  50.  
  51.         ##
  52.         # Logging Settings
  53.         ##
  54.  
  55.             #access_log off;
  56.             #error_log off;
  57.         #access_log /var/log/nginx/error.log;
  58.         #error_log /var/log/nginx/error.log;
  59.  
  60.         ##
  61.         # Gzip Settings
  62.         ##
  63.  
  64.         gzip on;
  65.         gzip_disable "msie6";
  66.         gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
  67.  
  68.         # gzip_vary on;
  69.         # gzip_proxied any;
  70.         # gzip_comp_level 6;
  71.         # gzip_buffers 16 8k;
  72.         # gzip_http_version 1.1;
  73.         # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  74.  
  75.         ##
  76.         # Virtual Host Configs
  77.         ##
  78.  
  79.         include /etc/nginx/conf.d/*.conf;
  80.         include /etc/nginx/sites-enabled/*;
  81.     }
  82.  
  83.  
  84.     #mail {
  85.     #   # See sample authentication script at:
  86.     #   # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  87.     #
  88.     #   # auth_http localhost/auth.php;
  89.     #   # pop3_capabilities "TOP" "USER";
  90.     #   # imap_capabilities "IMAP4rev1" "UIDPLUS";
  91.     #
  92.     #   server {
  93.     #       listen     localhost:110;
  94.     #       protocol   pop3;
  95.     #       proxy      on;
  96.     #   }
  97.     #
  98.     #   server {
  99.     #       listen     localhost:143;
  100.     #       protocol   imap;
  101.     #       proxy      on;
  102.     #   }
  103.     #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement