roles/nginx: Add new variable "needs_php"

Used to indicate if a vhost needs PHP configuration or not, like
for a static site. Set in the hosts's nginx_vhosts block. Defaults
to "False" if unset.
This commit is contained in:
Alan Orth 2016-09-13 14:53:12 +03:00
parent 4866083539
commit 740e5195a0
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@
{# assume optional features are off unless a vhost explicitly sets them #}
{% set enable_hsts = item.enable_hsts | default(False) %}
{% set has_wordpress = item.has_wordpress | default(False) %}
{% set needs_php = item.needs_php | default(False) %}
# http -> https vhost
server {