Advertisement
earthchie

domeclass.nginx.conf

Aug 27th, 2016
477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.99 KB | None | 0 0
  1. user root;
  2. worker_processes auto;
  3. worker_rlimit_nofile 100000;
  4. pid /run/nginx.pid;
  5.  
  6. events {
  7.     worker_connections 200000;
  8.     multi_accept on;
  9. }
  10.  
  11. http {
  12.  
  13.     sendfile on;
  14.     tcp_nopush on;
  15.     tcp_nodelay on;
  16.     keepalive_timeout 30;
  17.     types_hash_max_size 2048;
  18.  
  19.     server_tokens off;
  20.     reset_timedout_connection on;
  21.     add_header X-Powered-By "DomePress 1.0b";
  22.     add_header DomePress-Cache $upstream_cache_status;
  23.  
  24.     # Limit Request
  25.     limit_req_status 403;
  26.     limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
  27.  
  28.     # Proxy Settings
  29.     # set_real_ip_from  proxy-server-ip;
  30.     # real_ip_header    X-Forwarded-For;
  31.  
  32.     fastcgi_read_timeout 300;
  33.     client_max_body_size 500m;
  34.  
  35.     ##
  36.     # SSL Settings
  37.     ##
  38.  
  39.     ssl_session_cache shared:SSL:20m;
  40.     ssl_session_timeout 10m;
  41.     ssl_prefer_server_ciphers on;
  42.     ssl_ciphers EXXHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AXES128-GCM-SHAX256:ECXDHE-RSA-AES256-GCM-SHAX384:ECDHE-ECXDSA-AESX256-GCM-SHA3X84:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA;
  43.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  44.  
  45.     ##
  46.     # Basic Settings
  47.     ##
  48.     # server_names_hash_bucket_size 64;
  49.     # server_name_in_redirect off;
  50.  
  51.     include mime.types;
  52.     default_type application/octet-stream;
  53.  
  54.     ##
  55.     # Logging Settings
  56.     ##
  57.  
  58.     access_log logs/access.log;
  59.     error_log logs/error.log;
  60.  
  61.     # Log format Settings
  62.     log_format rt_cache '$remote_addr $upstream_response_time $upstream_cache_status [$time_local] '
  63.     '$http_host "$request" $status $body_bytes_sent '
  64.     '"$http_referer" "$http_user_agent"';
  65.  
  66.     log_format main '$http_x_forwarded_for - $remote_user [$time_local] "$host" "$subdomain" "$request" '
  67.             '$status $body_bytes_sent "$http_referer" '
  68.             '"$http_user_agent" $request_time';
  69.  
  70.     ##
  71.     # Gzip Settings
  72.     ##
  73.  
  74.     gzip on;
  75.     gzip_disable "msie6";
  76.  
  77.     gzip_vary on;
  78.     gzip_proxied any;
  79.     gzip_comp_level 6;
  80.     gzip_buffers 16 8k;
  81.     gzip_http_version 1.1;
  82.     gzip_types
  83.         application/atom+xml
  84.         application/javascript
  85.         application/json
  86.         application/rss+xml
  87.         application/vnd.ms-fontobject
  88.         application/x-font-ttf
  89.         application/x-web-app-manifest+json
  90.         application/xhtml+xml
  91.         application/xml
  92.         font/opentype
  93.         image/svg+xml
  94.         image/x-icon
  95.         text/css
  96.         text/plain
  97.         text/x-component
  98.         text/xml
  99.         text/javascript;
  100.     ## VTS virtual host traffic
  101.     vhost_traffic_status_zone;
  102.     ##
  103.     # Virtual Host Configs
  104.     ##
  105.  
  106.     include conf.d/*.conf;
  107.     include sites-enabled/*;
  108. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement