pull/218/merge
Brian Wells 3 years ago committed by GitHub
commit a14319f2b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      defaults/main.yml
  2. 10
      templates/nginx.conf.j2

@ -30,10 +30,12 @@ nginx_sendfile: "on"
nginx_tcp_nopush: "on" nginx_tcp_nopush: "on"
nginx_tcp_nodelay: "on" nginx_tcp_nodelay: "on"
nginx_keepalive_timeout: "65" nginx_keepalive_timeout: "10"
nginx_keepalive_requests: "100" nginx_keepalive_requests: "100"
nginx_server_tokens: "on" nginx_send_timeout: "10"
nginx_server_tokens: "off"
nginx_client_max_body_size: "64m" nginx_client_max_body_size: "64m"

@ -19,7 +19,7 @@ events {
{% endblock %} {% endblock %}
http { http {
{% block http_begin %}{% endblock %} {% block http_begin %}{% endblock %}
{% block http_basic %} {% block http_basic %}
include {{ nginx_mime_file_path }}; include {{ nginx_mime_file_path }};
@ -40,15 +40,15 @@ http {
keepalive_timeout {{ nginx_keepalive_timeout }}; keepalive_timeout {{ nginx_keepalive_timeout }};
keepalive_requests {{ nginx_keepalive_requests }}; keepalive_requests {{ nginx_keepalive_requests }};
send_timeout {{ nginx_send_timeout }};
server_tokens {{ nginx_server_tokens }}; server_tokens {{ nginx_server_tokens }};
{% if nginx_proxy_cache_path %} {% if nginx_proxy_cache_path %}
proxy_cache_path {{ nginx_proxy_cache_path }}; proxy_cache_path {{ nginx_proxy_cache_path }};
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block http_gzip %} {% block http_gzip %}{% endblock %}
# gzip on;
{% endblock %}
{% if nginx_extra_http_options %} {% if nginx_extra_http_options %}
{{ nginx_extra_http_options|indent(4, False) }} {{ nginx_extra_http_options|indent(4, False) }}
@ -77,5 +77,5 @@ http {
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block http_end %}{% endblock %} {% block http_end %}{% endblock %}
} }