forked from finallycoffee/nextcloud
chore(nginx-fpm-proxy): allow specifying multiple sockets as upstreams
This commit is contained in:
parent
e76e4beac0
commit
f27abe9e42
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user