Authored by chunhua.zhang

add

@@ -5,25 +5,3 @@ dc : "yoho-qcloud" @@ -5,25 +5,3 @@ dc : "yoho-qcloud"
5 5
6 path: "/Data/local/openresty-1.9.15.1" 6 path: "/Data/local/openresty-1.9.15.1"
7 7
8 -upstream_brower:  
9 - - 10.66.202.7:8092  
10 - - 10.66.202.32:8092  
11 -  
12 -upstream_gateway:  
13 - - 10.66.202.13:8080  
14 -  
15 -  
16 -upstream_activity:  
17 - - 10.66.202.14:8090  
18 -  
19 -upstream_wechat:  
20 - - 10.66.202.7:8094  
21 -  
22 -upstream_erpgateway:  
23 - - 10.66.202.7:8089  
24 -  
25 -  
26 -upstream_union:  
27 - - 10.66.70.21:8088  
28 - - 10.66.70.49:8088  
29 - - 10.66.103.20:8088  
@@ -110,7 +110,7 @@ http @@ -110,7 +110,7 @@ http
110 #apigatewaystart 110 #apigatewaystart
111 upstream apigateway { 111 upstream apigateway {
112 112
113 - {% for i in upstream_gateway %} 113 + {% for i in groups['java-gateway'] %}
114 server {{ i }} max_fails=5 fail_timeout=3s; 114 server {{ i }} max_fails=5 fail_timeout=3s;
115 {% endfor %} 115 {% endfor %}
116 116
@@ -124,7 +124,7 @@ http @@ -124,7 +124,7 @@ http
124 # activity 124 # activity
125 upstream activityApi{ 125 upstream activityApi{
126 126
127 - {% for i in upstream_activity %} 127 + {% for i in groups['java-activity'] %}
128 server {{ i }} ; 128 server {{ i }} ;
129 {% endfor %} 129 {% endfor %}
130 130
@@ -135,7 +135,7 @@ http @@ -135,7 +135,7 @@ http
135 # wechat 135 # wechat
136 upstream apiWechat { 136 upstream apiWechat {
137 137
138 - {% for i in upstream_wechat %} 138 + {% for i in groups['java-wechat'] %}
139 server {{ i }} ; 139 server {{ i }} ;
140 {% endfor %} 140 {% endfor %}
141 141
@@ -145,7 +145,7 @@ http @@ -145,7 +145,7 @@ http
145 # erp gateway 145 # erp gateway
146 upstream erpgateway { 146 upstream erpgateway {
147 147
148 - {% for i in upstream_erpgateway %} 148 + {% for i in groups['java-erpgateway'] %}
149 server {{ i }} ; 149 server {{ i }} ;
150 {% endfor %} 150 {% endfor %}
151 151
@@ -156,7 +156,7 @@ http @@ -156,7 +156,7 @@ http
156 156
157 # union servers 157 # union servers
158 upstream union_pools { 158 upstream union_pools {
159 - {% for i in upstream_union %} 159 + {% for i in groups['java-union'] %}
160 server {{ i }} ; 160 server {{ i }} ;
161 {% endfor %} 161 {% endfor %}
162 } 162 }