Skip to content

Commit 40caaa7

Browse files
alessfggdzien
authored andcommitted
Re-add api.conf.j2 in right directory (#130)
* Add api.conf.j2
1 parent feda384 commit 40caaa7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

templates/http/api.conf.j2

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{{ ansible_managed | comment }}
2+
3+
server {
4+
listen {{ nginx_rest_api_port }};
5+
location /api {
6+
{% if nginx_rest_api_write %}
7+
api write=on;
8+
{% else %}
9+
api;
10+
{% endif %}
11+
}
12+
{% if nginx_rest_api_dashboard %}
13+
location = /dashboard.html {
14+
root /usr/share/nginx/html;
15+
}
16+
{% endif %}
17+
}

0 commit comments

Comments
 (0)