ansible-role-nginx/templates/api.j2
Alessandro Fael Garcia 78a7e3efeb Multiple changes
* Add option to enable REST API
* Add option to enable live dashboard
* Add option to install WAF module
* Load modules in nginx.conf
* Improve version check for RedHat distros
2018-01-19 10:27:47 -08:00

16 lines
241 B
Django/Jinja

server {
listen 8080;
location /api {
{% if api.write %}
api write=on;
{% else %}
api;
{% endif %}
}
{% if api.dashboard %}
location = /dashboard.html {
root /usr/share/nginx/html;
}
{% endif %}
}