File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,11 @@ http {
68
68
{{ gzip(nginx_config_main_template.http_settings.gzip) }}
69
69
{% endfilter %}
70
70
{% endif %}
71
+ {% if nginx_config_main_template .http_settings .access_log_format is defined %}
71
72
{% for access_log in nginx_config_main_template .http_settings .access_log_format %}
72
73
log_format {{ access_log.name }} {{ access_log.format }};
73
74
{% endfor %}
75
+ {% endif %}
74
76
{% if nginx_config_main_template .http_settings .access_log_location is defined %}
75
77
{% if nginx_config_main_template .http_settings .access_log_location is sameas false or nginx_config_main_template .http_settings .access_log_location == "off" %}
76
78
access_log off;
92
94
{% if nginx_config_main_template .http_settings .server_tokens is defined and nginx_config_main_template .http_settings .server_tokens | length %}
93
95
server_tokens {{ nginx_config_main_template.http_settings.server_tokens }};
94
96
{% endif %}
97
+ {% if nginx_config_main_template .http_settings .keepalive_timeout is defined %}
95
98
keepalive_timeout {{ nginx_config_main_template.http_settings.keepalive_timeout }};
99
+ {% endif %}
96
100
{% if nginx_config_main_template .http_settings .rate_limit is defined %}
97
101
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s;
98
102
{% endif %}
You can’t perform that action at this time.
0 commit comments