-
Notifications
You must be signed in to change notification settings - Fork 5
/
nginx.conf
76 lines (58 loc) · 1.43 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri /index.html;
}
location /api/user {
proxy_pass http://backend:4080/api/user;
}
location /api/users {
proxy_pass http://backend:4080/api/users;
}
location /register {
proxy_pass http://backend:4080/register;
}
location /login {
proxy_pass http://backend:4080/login;
}
location /logout {
proxy_pass http://backend:4080/logout;
}
location /block-date {
proxy_pass http://backend:4080/block-date;
}
location /api/request-info {
proxy_pass http://backend:4080/api/request-info;
}
location /api/delete-request {
proxy_pass http://backend:4080/delete-request;
}
location /getSchedule {
proxy_pass http://backend:4080/getSchedule;
}
location /postSchedule {
proxy_pass http://backend:4080/postSchedule;
}
location /removeSchedule {
proxy_pass http://backend:4080/removeSchedule;
}
location /getScheduleHistory {
proxy_pass http://backend:4080/getScheduleHistory;
}
location /getUsers {
proxy_pass http://backend:4080/getUsers;
}
location /toggle-request-status {
proxy_pass http://backend:4080/toggle-request-status;
}
location /update-user {
proxy_pass http://backend:4080/update-user;
}
location /delete-user {
proxy_pass http://backend:4080/delete-user;
}
}