Fix more params and add upstream params

This commit is contained in:
Emilien Mantel
2015-09-21 11:47:49 +02:00
parent e4580676ce
commit 95e2cb5f12
4 changed files with 10 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ server {
{% if item.more is defined and item.more is iterable %}
{% for line in item.more %}
{{ item.more }}
{{ line }}
{% endfor %}
{% endif %}

View File

@@ -11,8 +11,11 @@
location ~ \.php$ {
fastcgi_pass php;
fastcgi_index index.php;
{# TODO: fastcgi_intercept_errors {{ item.php.intercept_errors | default('on') }}; #}
fastcgi_intercept_errors on;
{% if item.upstream_params is defined and item.upstream_params is iterable %}
{% for param in item.upstream_params %}
{{ param }}
{% endfor %}
{% endif %}
{% if nginx_version.stdout | version_compare('1.6.1', 'lt') %}
include fastcgi_params;
{% else %}