ansible-role-redmine/templates/nginx_unicorn.conf.j2

14 lines
486 B
Plaintext
Raw Normal View History

2020-11-15 14:34:57 +01:00
upstream unicorn {
# fail_timeout=0 means we always retry an upstream even if it failed
# to return a good HTTP response (in case the Unicorn master nukes a
# single worker for timing out).
# for UNIX domain socket setups:
# server unix:/tmp/.sock fail_timeout=0;
# for TCP setups, point these to your backend servers
2021-07-07 11:37:14 +02:00
{% for i in range(0, unicorn_worker_processes) %}
2020-11-15 14:34:57 +01:00
server 127.0.0.1:{{ unicorn_listen_port + i }} fail_timeout=0;
{% endfor %}
}