-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
55 lines (43 loc) · 848 Bytes
/
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
events {
worker_connections 4096; ## Default: 1024
}
http {
upstream edr-api {
server 46.101.102.213:81;
}
upstream edr-api-docs {
server 46.101.102.213:82;
}
upstream edr-static {
server 46.101.102.213:83;
}
upstream edr-graphql {
server 46.101.102.213:84;
}
server {
listen 80;
location / {
proxy_pass http://edr-static;
}
# Will be removed
location /companies {
return 302 /api/companies?$query_string;
}
# Will be removed
location /swagger.yaml {
return 302 /api/swagger.yaml;
}
location /api/ {
proxy_pass http://edr-api/api/;
}
location /graphql/ {
proxy_pass http://edr-graphql/;
}
location = /docs {
return 302 /docs/;
}
location /docs/ {
proxy_pass http://edr-api-docs/;
}
}
}