From 6d8099723d5a7598c5b007ac2b89798b893ab49e Mon Sep 17 00:00:00 2001 From: "zhifeng.jiang" Date: Fri, 4 Nov 2016 21:30:02 +0800 Subject: Start qtip server in qtip-dev host and add the qtip restful api online url in docs. JIRA:QTIP-111 Change-Id: I11c42c5d9033efeaf5b8525b1090c2d45a9597d8 Signed-off-by: zhifeng.jiang --- supporting/servers/roles/ngnix/templates/qtip.conf.j2 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 supporting/servers/roles/ngnix/templates/qtip.conf.j2 (limited to 'supporting/servers/roles/ngnix/templates') diff --git a/supporting/servers/roles/ngnix/templates/qtip.conf.j2 b/supporting/servers/roles/ngnix/templates/qtip.conf.j2 new file mode 100644 index 00000000..3a15c6ba --- /dev/null +++ b/supporting/servers/roles/ngnix/templates/qtip.conf.j2 @@ -0,0 +1,17 @@ +# {{ ansible_managed }} + +# servers +# +{% for service in qtip_services %} +server { + listen 80; + listen 443 ssl; + server_name {{ service.name }}.qtip.openzero.net; + location / { + proxy_pass {{ service.upstream }}; + sub_filter {{ service.upstream }} 'http://{{ service.name }}.qtip.openzero.net'; + sub_filter_once off; + sub_filter_types text/html application/json; + } +} +{% endfor %} -- cgit 1.2.3-korg