-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
46 lines (32 loc) · 839 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
worker_processes 1;
events { worker_connections 1024; }
http {
sendfile on;
upstream client {
server hafenkran-client:8080;
}
upstream userservice {
server hafenkran-userservice:8081;
}
upstream clusterservice {
server hafenkran-clusterservice:8082;
}
upstream reportingservice {
server hafenkran-reportingservice:8083;
}
server {
listen 80;
location ~ ^/api/us/(.*)$ {
proxy_pass http://userservice/$1;
}
location ~ ^/api/cs/(.*)$ {
proxy_pass http://clusterservice/$1;
}
location ~ ^/api/rs/(.*)$ {
proxy_pass http://reportingservice/$1;
}
location ~ ^/(.*)$ {
proxy_pass http://client/$1;
}
}
}