From 40caaa7ae05ddcceac4d96d92ca3f98c4a95e09e Mon Sep 17 00:00:00 2001 From: Alessandro Fael Garcia Date: Wed, 22 May 2019 18:27:47 +0200 Subject: [PATCH] Re-add api.conf.j2 in right directory (#130) * Add api.conf.j2 --- templates/http/api.conf.j2 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 templates/http/api.conf.j2 diff --git a/templates/http/api.conf.j2 b/templates/http/api.conf.j2 new file mode 100644 index 0000000..0063dbc --- /dev/null +++ b/templates/http/api.conf.j2 @@ -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 %} +}