generated from delftdata/wdm-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gateway_nginx.conf
40 lines (38 loc) · 958 Bytes
/
gateway_nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
events { worker_connections 2048;}
http {
upstream order-app {
server order-service:5000;
}
upstream payment1-app {
server payment-service1:5000;
}
upstream payment0-app {
server payment-service0:5000;
}
upstream stock-app {
server stock-service:5000;
}
upstream coordinator-app {
server coordinator-service:5000;
}
server {
listen 80;
location /orders/ {
proxy_pass http://order-app/;
}
location /payment1/ {
proxy_pass http://payment1-app/;
}
location /payment/ {
proxy_pass http://payment0-app/;
}
location /stock/ {
proxy_pass http://stock-app/;
}
location /coordinator/ {
proxy_pass http://coordinator-app/;
}
access_log /var/log/nginx/server.access.log;
}
access_log /var/log/nginx/access.log;
}