Browse Source

Add tcp_nopush and tcp_nodelay vars (#197)

devuan/0.13.0
Seena Fallah 3 years ago
committed by Alessandro Fael Garcia
parent
commit
ce58eeabbd
  1. 2
      README.md
  2. 2
      defaults/main.yml
  3. 8
      templates/nginx.conf.j2

2
README.md

@ -359,6 +359,8 @@ nginx_main_template:
access_log_location:
- name: main
location: /var/log/nginx/access.log
tcp_nopush: true
tcp_nodelay: true
keepalive_timeout: 65
cache: false
rate_limit: false

2
defaults/main.yml

@ -168,6 +168,8 @@ nginx_main_template:
access_log_location:
- name: main
location: /var/log/nginx/access.log
tcp_nopush: true
tcp_nodelay: true
keepalive_timeout: 65
cache: false
rate_limit: false

8
templates/nginx.conf.j2

@ -71,7 +71,13 @@ http {
{% endfor %}
sendfile on;
#tcp_nopush on;
{% if nginx_main_template.http_settings.tcp_nopush is defined and nginx_main_template.tcp_nopush %}
tcp_nopush on;
{% endif %}
{% if nginx_main_template.http_settings.tcp_nodelay is defined and nginx_main_template.tcp_nodelay %}
tcp_nodelay on;
{% endif %}
{% if nginx_main_template.http_settings.server_tokens is defined and nginx_main_template.http_settings.server_tokens | length %}
server_tokens {{ nginx_main_template.http_settings.server_tokens }};

Loading…
Cancel
Save