if only one worker, use it everywhere

This commit is contained in:
Geno 2020-11-27 23:44:27 +01:00
parent 39eaf80273
commit 5fc9b9eebb
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ http {
# sticky only on commercial nginx # sticky only on commercial nginx
# sticky cookie srv_id expires=8h; # sticky cookie srv_id expires=8h;
{% for n in range(osp_worker_count) %} {% for n in range(osp_worker_count) %}
{% if n != 0 %} {% if n != 0 or osp_worker_count == 1 %}
server 127.0.0.1:{{ osp_worker_start_port + n }}; server 127.0.0.1:{{ osp_worker_start_port + n }};
{% endif %} {% endif %}
{% endfor %} {% endfor %}