You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
2.2 KiB
77 lines
2.2 KiB
user {{ nginx_user }};
|
|
|
|
error_log {{ nginx_error_log }};
|
|
pid {{ nginx_pidfile }};
|
|
|
|
worker_processes {{ nginx_worker_processes }};
|
|
|
|
events {
|
|
worker_connections {{ nginx_worker_connections }};
|
|
multi_accept {{ nginx_multi_accept }};
|
|
}
|
|
|
|
{% if nginx_extra_conf_options %}
|
|
{{ nginx_extra_conf_options }}
|
|
{% endif %}
|
|
|
|
http {
|
|
include {{ nginx_mime_file_path }};
|
|
default_type application/octet-stream;
|
|
|
|
server_names_hash_bucket_size {{ nginx_server_names_hash_bucket_size }};
|
|
|
|
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 {{ nginx_access_log }};
|
|
|
|
sendfile {{ nginx_sendfile }};
|
|
tcp_nopush {{ nginx_tcp_nopush }};
|
|
tcp_nodelay {{ nginx_tcp_nodelay }};
|
|
|
|
keepalive_timeout {{ nginx_keepalive_timeout }};
|
|
keepalive_requests {{ nginx_keepalive_requests }};
|
|
|
|
gzip {{ nginx_gzip }};
|
|
|
|
{% if nginx_gzip == "on" %}
|
|
gzip_disable "{{ nginx_gzip_disable }}";
|
|
gzip_vary {{ nginx_gzip_vary }};
|
|
gzip_proxied {{ nginx_gzip_proxied }};
|
|
gzip_comp_level {{ nginx_gzip_comp_level }};
|
|
gzip_buffers {{ nginx_gzip_buffers }};
|
|
gzip_http_version {{ nginx_gzip_http_version }};
|
|
gzip_min_length {{ nginx_gzip_min_length }};
|
|
gzip_types {{ nginx_gzip_types }};
|
|
{% endif %}
|
|
|
|
{% if nginx_proxy_cache_path %}
|
|
proxy_cache_path {{ nginx_proxy_cache_path }};
|
|
{% endif %}
|
|
|
|
{% if nginx_extra_http_options %}
|
|
{{ nginx_extra_http_options }}
|
|
{% endif %}
|
|
|
|
{% for upstream in nginx_upstreams %}
|
|
upstream {{ upstream.name }} {
|
|
{% if upstream.strategy is defined %}
|
|
{{ upstream.strategy }};
|
|
{% endif %}
|
|
{% for server in upstream.servers %}
|
|
server {{ server }};
|
|
{% endfor %}
|
|
{% if upstream.keepalive is defined %}
|
|
keepalive {{ upstream.keepalive }};
|
|
{% endif %}
|
|
}
|
|
{% endfor %}
|
|
|
|
include {{ nginx_conf_path }}/*.conf;
|
|
{% if nginx_conf_path != nginx_vhost_path %}
|
|
include {{ nginx_vhost_path }}/*;
|
|
{% endif %}
|
|
}
|
|
|