parent
feda384b94
commit
40caaa7ae0
17
templates/http/api.conf.j2
Normal file
17
templates/http/api.conf.j2
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{{ ansible_managed | comment }}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen {{ nginx_rest_api_port }};
|
||||||
|
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 %}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user