-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.prod.conf
60 lines (49 loc) · 1.21 KB
/
nginx.prod.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
events {
worker_connections 1024;
}
http {
upstream was {
zone upstreams 64K;
server was:4000 fail_timeout=5s;
keepalive 10;
}
upstream waiting {
zone upstreams 64K;
server waiting:8080 fail_timeout=5s;
keepalive 10;
}
upstream client {
zone upstream 64K;
server client:80 fail_timeout=5s;
keepalive 10;
}
upstream file {
zone upstreams 64K;
server file:4010 fail_timeout=5s;
keepalive 10;
}
server {
listen 8888;
server_name tiketeer;
location / {
proxy_pass http://client;
proxy_http_version 1.1;
proxy_set_header Connection "";
}
location /api/file {
proxy_pass http://file/file;
proxy_http_version 1.1;
proxy_set_header Connection "";
}
location /api/waiting {
proxy_pass http://waiting/waiting;
proxy_http_version 1.1;
proxy_set_header Connection "";
}
location /api {
proxy_pass http://was/api;
proxy_http_version 1.1;
proxy_set_header Connection "";
}
}
}