-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
62 lines (49 loc) · 1.32 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
events {}
http {
upstream api_gateway {
server api_gateway_container:8000;
}
# upstream market_performance {
# server market_performance_container:50053;
# }
upstream question_analysis {
server question_analysis_container:8080;
}
upstream yelp_reviews {
server yelp_reviews_container:5005;
}
upstream market_analysis {
server market_analysis_container:50053;
}
upstream sentiment_analysis {
server sentiment_analysis_container:50056;
}
server {
listen 80;
listen 443 ssl http2;
http2 on;
ssl_certificate /etc/nginx/tls.crt;
ssl_certificate_key /etc/nginx/tls.key;
location /api/ {
proxy_pass http://api_gateway/;
}
# location /market/ {
# proxy_pass http://market_performance/;
# }
location /qa/ {
proxy_pass http://question_analysis/;
}
location /yelp/ {
proxy_pass http://yelp_reviews/;
}
location /market/ {
proxy_pass http://market_analysis/;
}
location /metrics {
proxy_pass http://market_analysis/metrics;
}
location /sa/ {
proxy_pass http://sentiment_analysis/;
}
}
}