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