chore(nginx-fpm-proxy): allow specifying multiple sockets as upstreams

This commit is contained in:
transcaffeine 2022-05-29 09:48:25 +02:00
parent e76e4beac0
commit f27abe9e42
Signed by untrusted user: transcaffeine
GPG Key ID: 03624C433676E465

View File

@ -1,6 +1,12 @@
upstream php-handler { upstream php-handler {
{% if fpm_socket %} {% if fpm_socket %}
{% if fpm_socket is sequence %}
{% for upstream in fpm_socket %}
server unix:{{ upstream }};
{% endfor %}
{% else %}
server unix:{{ fpm_socket }}; server unix:{{ fpm_socket }};
{% endif %}
{% else %} {% else %}
server {{ fpm_server }}:{{ fpm_server_port }}; server {{ fpm_server }}:{{ fpm_server_port }};
{% endif %} {% endif %}