Skip to content

Commit e80ab12

Browse files
committed
Add conditional check
This conditional ensures that the NGINX API will only be deployed if enabled
1 parent 714b2aa commit e80ab12

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)