ansible-role-nginx/templates/http/api.conf.j2
2020-06-23 17:48:43 +02:00

19 lines
397 B
Django/Jinja

{{ ansible_managed | comment }}
server {
listen {{ nginx_rest_api_port | default('80') }};
access_log {{ nginx_rest_api_log | ternary("on", "off") }};
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 %}
}