ansible-role-nginx/templates/http/api.conf.j2
Alessandro Fael Garcia 40caaa7ae0 Re-add api.conf.j2 in right directory (#130)
* Add api.conf.j2
2019-05-22 17:27:47 +01:00

18 lines
317 B
Django/Jinja

{{ 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 %}
}