-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
48 lines (35 loc) · 820 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
events {}
http {
include mime.types;
upstream api {
server api:9004;
}
upstream editor {
server editor;
}
upstream router {
server router;
}
server {
listen 80;
include /etc/nginx/mime.types;
server_name localhost:9001;
root /home/;
index index.html index.htm;
location /lineShaper/favicon.ico {
alias /home/favicon.ico;
}
location /lineShaper {
rewrite ^ /index.html break;
}
location /lineShaper/api {
proxy_pass http://api;
}
location /lineShaper/mapEditor {
proxy_pass http://editor;
}
location /lineShaper/lineRouter {
proxy_pass http://router;
}
}
}