Skip to content

Commit abbb0f7

Browse files
author
Pierre Buyle
committed
Settings item.limit_conn to "None" disable the directive.
1 parent e92e632 commit abbb0f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/sites-available/drupal-site.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ server {
2525
{% endif %}
2626

2727
server_name {{item.server_name}};
28+
{% if item.limit_conn != 'None' %}
2829
limit_conn {{item.limit_conn|default('arbeit 32')}};
30+
{% endif %}
2931

3032
## Access and error logs.
3133
access_log {{nginx_drupal_log_path}}/{{item.server_name}}_{{item.file_name}}_access.log;
@@ -198,7 +200,9 @@ server {
198200

199201
server_name {{item.server_name}};
200202

203+
{% if item.limit_conn != 'None' %}
201204
limit_conn {{item.limit_conn|default('arbeit 32')}};
205+
{% endif %}
202206

203207
## Access and error logs.
204208
access_log {{nginx_drupal_log_path}}/{{item.server_name}}_access.log;

0 commit comments

Comments
 (0)