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 {
|
||||
{% if fpm_socket %}
|
||||
{% if fpm_socket is sequence %}
|
||||
{% for upstream in fpm_socket %}
|
||||
server unix:{{ upstream }};
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
server unix:{{ fpm_socket }};
|
||||
{% endif %}
|
||||
{% else %}
|
||||
server {{ fpm_server }}:{{ fpm_server_port }};
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user