SHARE
TWEET

Nginx conf

a guest Dec 9th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user www-data;
  2. worker_processes auto;
  3. worker_rlimit_nofile 50000;
  4. pid /run/nginx.pid;
  5.  
  6. events {
  7.         worker_connections 25000;
  8.         use epoll;
  9.         multi_accept on;
  10. }
  11.  
  12. http {
  13.  
  14.         ##
  15.         # Basic Settings
  16.         ##
  17.  
  18.         sendfile on;
  19.         tcp_nopush on;
  20.         tcp_nodelay on;
  21.         keepalive_timeout 65;
  22.         types_hash_max_size 2048;
  23.         # server_tokens off;
  24.  
  25.         # server_names_hash_bucket_size 64;
  26.         # server_name_in_redirect off;
  27.  
  28.         include /etc/nginx/mime.types;
  29.         default_type application/octet-stream;
  30.  
  31.         ##
  32.         # SSL Settings
  33.         ##
  34.  
  35.         ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  36.         ssl_prefer_server_ciphers on;
  37.  
  38.         ##
  39.         # Logging Settings
  40.         ##
  41.  
  42.         access_log /var/log/nginx/access.log;
  43.         error_log /var/log/nginx/error.log;
  44.  
  45.         ##
  46.         # Gzip Settings
  47.         ##
  48.  
  49.         gzip on;
  50.         gzip_disable "msie6";
  51.  
  52.         # gzip_vary on;
  53.         # gzip_proxied any;
  54.         # gzip_comp_level 6;
  55.         # gzip_buffers 16 8k;
  56.         # gzip_http_version 1.1;
  57.         # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  58.  
  59.         ##
  60.         # Virtual Host Configs
  61.         ##
  62.  
  63.         include /etc/nginx/conf.d/*.conf;
  64.         include /etc/nginx/sites-enabled/*;
  65. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top