|
@@ -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
|
}
|