mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-04-01 12:02:09 +07:00
Minor fixes
This commit is contained in:
@@ -3,13 +3,13 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
upstream php {
|
upstream php {
|
||||||
{% for item in nginx_php_sockets %}
|
{% for item in nginx_php_sockets %}
|
||||||
{% if item.unix_socket is defined %}
|
{% if item.unix_socket is defined %}
|
||||||
server unix:{{ item.unix_socket }} weight={{ item.weight | default('1') }};
|
server unix:{{ item.unix_socket }} weight={{ item.weight | default('1') }};
|
||||||
{% else %}
|
{% else %}
|
||||||
server {{ item.host }}:{{ item.port }} weight={{ item.weight | default('1') }} max_fails={{ item.max_fails | default('5') }} fail_timeout={{ item.fail_timeout | default('10s') }};
|
server {{ item.host }}:{{ item.port }} weight={{ item.weight | default('1') }} max_fails={{ item.max_fails | default('5') }} fail_timeout={{ item.fail_timeout | default('10s') }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim:filetype=nginx
|
# vim:filetype=nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user