-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWebAPI_Server.conf
103 lines (64 loc) · 2.21 KB
/
WebAPI_Server.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
log_format upstreamlog '$server_name to: $upstream_addr {$request} '
'upstream_response_time $upstream_response_time'
' request_time $request_time';
upstream qrAuth {
server 127.0.0.1:9010;
}
upstream mlFaceRecon {
server 127.0.0.1:9000;
}
upstream qrDecode {
server 127.0.0.1:9020;
}
upstream vrHealSession {
server 127.0.0.1:9030;
server 127.0.0.1:9031;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
access_log /var/log/nginx/nginx-access.log upstreamlog;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
location /nginx {
try_files $uri $uri/ =404;
}
location /api {
proxy_pass http://localhost:8000;
}
location /authChannel {
proxy_pass http://localhost:8000;
}
location /ws/ml/emotionFaceRecon {
proxy_pass http://mlFaceRecon;
include proxy_params;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
}
location /ws/qr/auth {
proxy_pass http://qrAuth;
include proxy_params;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
}
location /ws/qr/decode {
proxy_pass http://qrDecode;
include proxy_params;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
}
location /ws/vr/heal/session {
proxy_pass http://vrHealSession;
include proxy_params;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
}
}