-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.dev.conf
58 lines (49 loc) · 1.27 KB
/
nginx.dev.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
events {
worker_connections 1024;
}
http {
upstream was {
zone upstreams 64K;
server host.docker.internal:4000 fail_timeout=5s;
keepalive 10;
}
upstream waiting {
zone upstreams 64K;
server host.docker.internal:8080 fail_timeout=5s;
keepalive 10;
}
upstream file {
zone upstreams 64K;
server host.docker.internal:4010 fail_timeout=5s;
keepalive 10;
}
upstream client {
zone upstream 64K;
server host.docker.internal:3000 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 "";
}
}
}