-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnginx.production.conf
77 lines (62 loc) · 2.01 KB
/
nginx.production.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
worker_processes 4;
events { worker_connections 1024; }
http {
resolver 127.0.0.11 ipv6=off;
server {
listen 80;
location / {
proxy_pass http://newsaggregator-news-mvc:5200/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $remote_addr;
}
location /api/ {
proxy_pass http://newsaggregator-gateways-api:5000/api/;
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
location /api/gateways/swagger/ {
proxy_pass http://newsaggregator-gateways-api:5000/swagger/;
}
location /api/gateways/seq/ {
proxy_pass http://newsaggregator-gateways-api-seq:80/;
}
location /api/news/swagger/ {
proxy_pass http://newsaggregator-news-api:5100/swagger/;
}
location /api/news/seq/ {
proxy_pass http://newsaggregator-news-api-seq:80/;
}
location /api/news/mvc/seq/ {
proxy_pass http://newsaggregator-news-mvc-seq:80/;
}
location /api/news/parser/seq/ {
proxy_pass http://newsaggregator-news-parser-seq:80/;
}
location /api/news/searcher/seq/ {
proxy_pass http://newsaggregator-news-searcher-seq:80/;
}
location /api/notification/swagger/ {
proxy_pass http://newsaggregator-notification-api:5300/swagger/;
}
location /api/notification/seq/ {
proxy_pass http://newsaggregator-notification-api-seq:80/;
}
location /grafana/ {
proxy_pass http://grafana:3000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
}