| 1 | user www-data;
|
|---|
| 2 | worker_processes 8;
|
|---|
| 3 |
|
|---|
| 4 | error_log /var/log/nginx/error_log.nginx error;
|
|---|
| 5 |
|
|---|
| 6 | #pid logs/nginx.pid;
|
|---|
| 7 |
|
|---|
| 8 | events {
|
|---|
| 9 | worker_connections 1024;
|
|---|
| 10 | use epoll;
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
| 13 | http {
|
|---|
| 14 | access_log off;
|
|---|
| 15 |
|
|---|
| 16 | include mime.types;
|
|---|
| 17 | default_type application/octet-stream;
|
|---|
| 18 | index index.html index.htm;
|
|---|
| 19 |
|
|---|
| 20 | server_names_hash_max_size 8192;
|
|---|
| 21 | server_names_hash_bucket_size 512;
|
|---|
| 22 |
|
|---|
| 23 | sendfile on;
|
|---|
| 24 | tcp_nopush on;
|
|---|
| 25 | tcp_nodelay on;
|
|---|
| 26 | #keepalive_timeout 0;
|
|---|
| 27 | keepalive_timeout 35s;
|
|---|
| 28 | proxy_connect_timeout 600;
|
|---|
| 29 | proxy_send_timeout 600;
|
|---|
| 30 | proxy_read_timeout 600;
|
|---|
| 31 | send_timeout 600;
|
|---|
| 32 | reset_timedout_connection on;
|
|---|
| 33 | proxy_buffers 64 4k;
|
|---|
| 34 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|---|
| 35 |
|
|---|
| 36 | #gzip off;
|
|---|
| 37 | gzip on;
|
|---|
| 38 | gzip_types text/css application/x-javascript text/plain;
|
|---|
| 39 | gzip_comp_level 6;
|
|---|
| 40 | gzip_min_length 100;
|
|---|
| 41 | gzip_http_version 1.0;
|
|---|
| 42 | gzip_proxied any;
|
|---|
| 43 | gzip_vary on;
|
|---|
| 44 |
|
|---|
| 45 | include admin_configs/*.conf;
|
|---|
| 46 | include shared_configs/*.conf;
|
|---|
| 47 | }
|
|---|
| 48 |
|
|---|