147410ab03
Refactor template variables and configuration scripts
16 lines
242 B
Django/Jinja
16 lines
242 B
Django/Jinja
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 %}
|
|
}
|