summaryrefslogtreecommitdiffstats
path: root/supporting/servers/roles/elk/templates
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2016-10-12 15:09:39 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2016-10-12 15:14:18 +0800
commit58174636628ef4dcd144a6b4b5dca7228bb1e3d1 (patch)
tree295ff60e2a6bef30516d5e48630dca70fd5c701b /supporting/servers/roles/elk/templates
parentc8a687ee896eeb7b1184f88191fecd7f76e26c16 (diff)
Add playbook to deploy nginx for elk
JIRA: QTIP-123 Change-Id: I6b98e3eab4c18e66b5455a073fccb68a3789f049 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'supporting/servers/roles/elk/templates')
-rw-r--r--supporting/servers/roles/elk/templates/elk.conf.j214
1 files changed, 14 insertions, 0 deletions
diff --git a/supporting/servers/roles/elk/templates/elk.conf.j2 b/supporting/servers/roles/elk/templates/elk.conf.j2
new file mode 100644
index 00000000..271690e0
--- /dev/null
+++ b/supporting/servers/roles/elk/templates/elk.conf.j2
@@ -0,0 +1,14 @@
+# {{ ansible_managed }}
+
+# servers
+#
+{% for service in services %}
+server {
+ listen 80;
+ listen 443 ssl;
+ server_name {{ service.name }}.qtip.openzero.net;
+ location / {
+ proxy_pass {{ service.upstream }};
+ }
+}
+{% endfor %}