Re-add api.conf.j2 in right directory (#130)

* Add api.conf.j2
This commit is contained in:
Alessandro Fael Garcia 2019-05-22 18:27:47 +02:00 committed by Grzegorz Dzien
parent feda384b94
commit 40caaa7ae0

View File

@ -0,0 +1,17 @@
{{ ansible_managed | comment }}
server {
listen {{ nginx_rest_api_port }};
location /api {
{% if nginx_rest_api_write %}
api write=on;
{% else %}
api;
{% endif %}
}
{% if nginx_rest_api_dashboard %}
location = /dashboard.html {
root /usr/share/nginx/html;
}
{% endif %}
}