From e80ab120b726c34ab5ae0e37d38f3b947d05c8e1 Mon Sep 17 00:00:00 2001 From: Alessandro Fael Garcia Date: Thu, 5 Apr 2018 14:50:53 -0700 Subject: [PATCH] Add conditional check This conditional ensures that the NGINX API will only be deployed if enabled --- templates/http/api.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/http/api.conf.j2 b/templates/http/api.conf.j2 index 7d0885b..9b72fe6 100644 --- a/templates/http/api.conf.j2 +++ b/templates/http/api.conf.j2 @@ -1,3 +1,4 @@ +{% if rest_api_enable %} server { listen 8080; location /api { @@ -13,3 +14,4 @@ server { } {% endif %} } +{% endif %}