Showing
7 changed files
with
105 additions
and
2 deletions
1 | +## message controller | ||
2 | +server { | ||
3 | + | ||
4 | +# only allow local | ||
5 | +include conf/local.access.conf | ||
6 | + | ||
7 | + listen 80; | ||
8 | + server_name message-controller.yohoops.org; | ||
9 | + access_log /Data/logs/nginx/message_controller_access.log fenxi; | ||
10 | + error_log /Data/logs/nginx/message_controller_error.log; | ||
11 | + | ||
12 | + | ||
13 | + location / { | ||
14 | + proxy_redirect off; | ||
15 | + proxy_pass http://message; | ||
16 | + proxy_set_header Host $host; | ||
17 | + proxy_set_header X-Real-IP $http_x_forwarded_for; | ||
18 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
19 | + proxy_set_header Accept-Encoding "gzip"; | ||
20 | + } | ||
21 | + | ||
22 | +} |
1 | +## review controller | ||
2 | +server { | ||
3 | + | ||
4 | +# only allow local | ||
5 | +include conf/local.access.conf | ||
6 | + | ||
7 | + listen 80; | ||
8 | + server_name review.yoho.yohoops.org; | ||
9 | + access_log /Data/logs/nginx/review_access.log fenxi; | ||
10 | + error_log /Data/logs/nginx/review_error.log; | ||
11 | + | ||
12 | + location / { | ||
13 | + proxy_redirect off; | ||
14 | + proxy_pass http://review; | ||
15 | + proxy_set_header Host $host; | ||
16 | + proxy_set_header X-Real-IP $http_x_forwarded_for; | ||
17 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
18 | + proxy_set_header Accept-Encoding "gzip"; | ||
19 | + } | ||
20 | + | ||
21 | +} |
1 | +## review controller | ||
2 | +server { | ||
3 | + | ||
4 | +# only allow local | ||
5 | +include conf/local.access.conf | ||
6 | + | ||
7 | + listen 80; | ||
8 | + server_name search.yohoops.org; | ||
9 | + access_log /Data/logs/nginx/search_access.log fenxi; | ||
10 | + error_log /Data/logs/nginx/search_error.log; | ||
11 | + | ||
12 | + | ||
13 | + location / { | ||
14 | + proxy_redirect off; | ||
15 | + proxy_pass http://search; | ||
16 | + proxy_set_header Host $host; | ||
17 | + proxy_set_header X-Real-IP $http_x_forwarded_for; | ||
18 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
19 | + proxy_set_header Accept-Encoding "gzip"; | ||
20 | + } | ||
21 | + | ||
22 | +} |
@@ -34,6 +34,9 @@ | @@ -34,6 +34,9 @@ | ||
34 | - java-erpgateway | 34 | - java-erpgateway |
35 | - java-union | 35 | - java-union |
36 | - java-uic | 36 | - java-uic |
37 | + - java-review | ||
38 | + - java-message-controller | ||
39 | + - search-service | ||
37 | 40 | ||
38 | - name: copy lualib files to openresty | 41 | - name: copy lualib files to openresty |
39 | copy: | 42 | copy: |
@@ -132,6 +132,30 @@ http | @@ -132,6 +132,30 @@ http | ||
132 | keepalive 100; | 132 | keepalive 100; |
133 | } | 133 | } |
134 | 134 | ||
135 | + # review | ||
136 | + upstream review { | ||
137 | + {% for i in groups['java-review'] %} | ||
138 | + server {{ i }}:8063; | ||
139 | + {% endfor %} | ||
140 | + keepalive 100; | ||
141 | + } | ||
142 | + | ||
143 | + # message controller | ||
144 | + upstream message { | ||
145 | + {% for i in groups['java-message-controller'] %} | ||
146 | + server {{ i }}:8087; | ||
147 | + {% endfor %} | ||
148 | + keepalive 100; | ||
149 | + } | ||
150 | + | ||
151 | + # search | ||
152 | + upstream search{ | ||
153 | + {% for i in groups['search-service'] %} | ||
154 | + server {{ i }}:8080; | ||
155 | + {% endfor %} | ||
156 | + keepalive 100; | ||
157 | + | ||
158 | + } | ||
135 | 159 | ||
136 | 160 | ||
137 | #apigatewaystart | 161 | #apigatewaystart |
@@ -266,5 +290,7 @@ http | @@ -266,5 +290,7 @@ http | ||
266 | include vhosts/api.ufo.conf; | 290 | include vhosts/api.ufo.conf; |
267 | include vhosts/y-d.conf; | 291 | include vhosts/y-d.conf; |
268 | include vhosts/uic.conf; | 292 | include vhosts/uic.conf; |
269 | - | 293 | + include vhosts/review.conf; |
294 | + include vhosts/message-controller.conf; | ||
295 | + include vhosts/search.conf; | ||
270 | } | 296 | } |
@@ -57,7 +57,9 @@ host_group = {"yoho_gateway": "java-gateway", | @@ -57,7 +57,9 @@ host_group = {"yoho_gateway": "java-gateway", | ||
57 | "yohobuy_portal_gateway": "java-portal-gateway", | 57 | "yohobuy_portal_gateway": "java-portal-gateway", |
58 | "yohobuy_extendstore": "java-extendstore", | 58 | "yohobuy_extendstore": "java-extendstore", |
59 | "yoho_inbox": "java-inbox", | 59 | "yoho_inbox": "java-inbox", |
60 | - "yohobuy_crm": "java-crm" | 60 | + "yohobuy_crm": "java-crm", |
61 | + "yoho_reviewed": "java-review", | ||
62 | + "yoho_message_controller": "java-message-controller" | ||
61 | } | 63 | } |
62 | # all available zone groups | 64 | # all available zone groups |
63 | all_groups = {} | 65 | all_groups = {} |
-
Please register or login to post a comment