Skip to content

Commit 4fa9a51

Browse files
authored
Merge pull request #16 from nginxinc/(bug)/only-deploy-api-when-enabled
Add conditional check
2 parents 714b2aa + e80ab12 commit 4fa9a51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/http/api.conf.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% if rest_api_enable %}
12
server {
23
listen 8080;
34
location /api {
@@ -13,3 +14,4 @@ server {
1314
}
1415
{% endif %}
1516
}
17+
{% endif %}

0 commit comments

Comments
 (0)