diff options
author | zhifeng.jiang <jiang.zhifeng@zte.com.cn> | 2016-11-04 21:30:02 +0800 |
---|---|---|
committer | zhifeng.jiang <jiang.zhifeng@zte.com.cn> | 2016-11-07 19:38:23 +0800 |
commit | 6d8099723d5a7598c5b007ac2b89798b893ab49e (patch) | |
tree | b11a625f90e137f175b225f9555a77c7e7edfb83 /supporting/servers/roles/ngnix/templates/qtip.conf.j2 | |
parent | e831e0b5e918200e98e8abe8d10a46c7873e6128 (diff) |
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 <jiang.zhifeng@zte.com.cn>
Diffstat (limited to 'supporting/servers/roles/ngnix/templates/qtip.conf.j2')
-rw-r--r-- | supporting/servers/roles/ngnix/templates/qtip.conf.j2 | 17 |
1 files changed, 17 insertions, 0 deletions
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 %} |