-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.conf
32 lines (27 loc) · 822 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
events { worker_connections 1024; }
http {
server {
listen 80;
client_max_body_size 20M;
location /targets/ {
if ($request_method = GET){
proxy_pass http://read-service:3006;
}
if ($request_method ~* POST|PUT|DELETE) {
proxy_pass http://target-service:3001;
}
}
location /shots/ {
if ($request_method = GET){
proxy_pass http://read-service:3006;
}
if ($request_method ~* POST|PUT|DELETE) {
proxy_pass http://sharpshooter-service:3002;
}
}
# There are no GET requests to the user-service
location /users/ {
proxy_pass http://user-service:3003;
}
}
}