2018-01-19 19:27:47 +01:00
|
|
|
server {
|
|
|
|
listen 8080;
|
|
|
|
location /api {
|
2018-02-20 21:28:14 +01:00
|
|
|
{% if rest_api_write %}
|
2018-01-19 19:27:47 +01:00
|
|
|
api write=on;
|
|
|
|
{% else %}
|
|
|
|
api;
|
|
|
|
{% endif %}
|
|
|
|
}
|
2018-02-20 21:28:14 +01:00
|
|
|
{% if dashboard %}
|
2018-01-19 19:27:47 +01:00
|
|
|
location = /dashboard.html {
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
}
|
|
|
|
{% endif %}
|
|
|
|
}
|