File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -359,6 +359,8 @@ nginx_main_template:
359
359
access_log_location :
360
360
- name : main
361
361
location : /var/log/nginx/access.log
362
+ tcp_nopush : true
363
+ tcp_nodelay : true
362
364
keepalive_timeout : 65
363
365
cache : false
364
366
rate_limit : false
Original file line number Diff line number Diff line change @@ -168,6 +168,8 @@ nginx_main_template:
168
168
access_log_location :
169
169
- name : main
170
170
location : /var/log/nginx/access.log
171
+ tcp_nopush : true
172
+ tcp_nodelay : true
171
173
keepalive_timeout : 65
172
174
cache : false
173
175
rate_limit : false
Original file line number Diff line number Diff line change @@ -71,7 +71,13 @@ http {
71
71
{% endfor %}
72
72
73
73
sendfile on;
74
- #tcp_nopush on;
74
+
75
+ {% if nginx_main_template .http_settings .tcp_nopush is defined and nginx_main_template .tcp_nopush %}
76
+ tcp_nopush on;
77
+ {% endif %}
78
+ {% if nginx_main_template .http_settings .tcp_nodelay is defined and nginx_main_template .tcp_nodelay %}
79
+ tcp_nodelay on;
80
+ {% endif %}
75
81
76
82
{% if nginx_main_template .http_settings .server_tokens is defined and nginx_main_template .http_settings .server_tokens | length %}
77
83
server_tokens {{ nginx_main_template.http_settings.server_tokens }};
You can’t perform that action at this time.
0 commit comments