...
|
...
|
@@ -110,7 +110,7 @@ http |
|
|
#apigatewaystart
|
|
|
upstream apigateway {
|
|
|
|
|
|
{% for i in upstream_gateway %}
|
|
|
{% for i in groups['java-gateway'] %}
|
|
|
server {{ i }} max_fails=5 fail_timeout=3s;
|
|
|
{% endfor %}
|
|
|
|
...
|
...
|
@@ -124,7 +124,7 @@ http |
|
|
# activity
|
|
|
upstream activityApi{
|
|
|
|
|
|
{% for i in upstream_activity %}
|
|
|
{% for i in groups['java-activity'] %}
|
|
|
server {{ i }} ;
|
|
|
{% endfor %}
|
|
|
|
...
|
...
|
@@ -135,7 +135,7 @@ http |
|
|
# wechat
|
|
|
upstream apiWechat {
|
|
|
|
|
|
{% for i in upstream_wechat %}
|
|
|
{% for i in groups['java-wechat'] %}
|
|
|
server {{ i }} ;
|
|
|
{% endfor %}
|
|
|
|
...
|
...
|
@@ -145,7 +145,7 @@ http |
|
|
# erp gateway
|
|
|
upstream erpgateway {
|
|
|
|
|
|
{% for i in upstream_erpgateway %}
|
|
|
{% for i in groups['java-erpgateway'] %}
|
|
|
server {{ i }} ;
|
|
|
{% endfor %}
|
|
|
|
...
|
...
|
@@ -156,7 +156,7 @@ http |
|
|
|
|
|
# union servers
|
|
|
upstream union_pools {
|
|
|
{% for i in upstream_union %}
|
|
|
{% for i in groups['java-union'] %}
|
|
|
server {{ i }} ;
|
|
|
{% endfor %}
|
|
|
}
|
...
|
...
|
|