2014-05-03 05:18:10 +02:00
|
|
|
user {{ nginx_user }};
|
|
|
|
|
2015-02-25 04:10:22 +01:00
|
|
|
error_log {{ nginx_error_log }};
|
2014-05-03 05:18:10 +02:00
|
|
|
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"';
|
|
|
|
|
2015-02-25 04:10:22 +01:00
|
|
|
access_log {{ nginx_access_log }};
|
2014-05-03 05:18:10 +02:00
|
|
|
|
2015-02-25 04:10:22 +01:00
|
|
|
sendfile {{ nginx_sendfile }};
|
|
|
|
tcp_nopush {{ nginx_tcp_nopush }};
|
|
|
|
tcp_nodelay {{ nginx_tcp_nodelay }};
|
2014-05-03 05:18:10 +02:00
|
|
|
|
|
|
|
keepalive_timeout {{ nginx_keepalive_timeout }};
|
2015-02-25 04:10:22 +01:00
|
|
|
keepalive_requests {{ nginx_keepalive_requests }};
|
2014-05-03 05:18:10 +02:00
|
|
|
|
|
|
|
#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:42:51 +01:00
|
|
|
{% for upstream in nginx_upstreams %}
|
|
|
|
upstream {{ upstream.name }} {
|
|
|
|
{% if upstream.strategy is defined %}
|
|
|
|
{{ upstream.strategy }};
|
|
|
|
{% endif %}
|
|
|
|
{% for server in upstream.servers %}
|
|
|
|
server {{ server }};
|
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
{% endfor %}
|
|
|
|
|
2015-05-16 12:30:31 +02:00
|
|
|
include {{ nginx_conf_path }}/*.conf;
|
2015-05-13 02:47:15 +02:00
|
|
|
{% if nginx_conf_path != nginx_vhost_path %}
|
2015-05-16 12:30:31 +02:00
|
|
|
include {{ nginx_vhost_path }}/*.conf;
|
2015-04-29 13:58:08 +02:00
|
|
|
{% endif %}
|
2014-05-03 05:18:10 +02:00
|
|
|
}
|