2014-05-03 05:18:10 +02:00
|
|
|
user {{ nginx_user }};
|
|
|
|
|
|
|
|
error_log /var/log/nginx/error.log warn;
|
|
|
|
pid /var/run/nginx.pid;
|
|
|
|
|
|
|
|
worker_processes {{ nginx_worker_processes }};
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections {{ nginx_worker_connections }};
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
server_names_hash_bucket_size 64;
|
|
|
|
|
|
|
|
client_max_body_size {{ nginx_client_max_body_size }};
|
|
|
|
|
|
|
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
|
|
|
|
access_log /var/log/nginx/access.log main buffer=16k;
|
|
|
|
|
|
|
|
sendfile on;
|
|
|
|
#tcp_nopush on;
|
|
|
|
|
|
|
|
keepalive_timeout {{ nginx_keepalive_timeout }};
|
|
|
|
|
|
|
|
#gzip on;
|
|
|
|
|
2014-12-09 05:07:57 +01:00
|
|
|
{% if nginx_proxy_cache_path %}
|
|
|
|
proxy_cache_path {{ nginx_proxy_cache_path }};
|
|
|
|
{% endif %}
|
|
|
|
|
2015-02-21 07:02:51 +01:00
|
|
|
include {{ nginx_vhost_path }}/*;
|
2014-05-03 05:18:10 +02:00
|
|
|
}
|