Alan Orth
926cdf58cf
See: http://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_timeout Signed-off-by: Alan Orth <alan.orth@gmail.com>
44 lines
906 B
Nginx Configuration File
44 lines
906 B
Nginx Configuration File
|
|
user nginx;
|
|
worker_processes auto;
|
|
|
|
error_log /var/log/nginx/error.log error;
|
|
pid /var/run/nginx.pid;
|
|
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
server_tokens off;
|
|
|
|
access_log off;
|
|
|
|
sendfile on;
|
|
#tcp_nopush on;
|
|
|
|
keepalive_timeout 65s;
|
|
|
|
gzip on;
|
|
gzip_vary on;
|
|
gzip_comp_level 6;
|
|
gzip_min_length 860;
|
|
gzip_disable "msie6";
|
|
gzip_http_version 1.1;
|
|
gzip_types text/plain text/css text/xml application/rss+xml application/javascript;
|
|
|
|
client_max_body_size 12m;
|
|
|
|
include fastcgi_cache;
|
|
include /etc/nginx/conf.d/*.conf;
|
|
}
|