forked from HyperIoT-Labs/HyperIoT-UI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.vh.default.conf
39 lines (34 loc) · 1.19 KB
/
nginx.vh.default.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
server {
listen 80;
listen [::]:80;
client_max_body_size 200M;
#WebSocket reverse proxy configuration for chatbot
location /hyperiot/llm/ws {
resolver 127.0.0.1 [::1];
rewrite ^/hyperiot/llm/ws/(.*) /ws/$1 break;
proxy_http_version 1.1;
proxy_set_header Upgrade ${DOLLAR}http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass "${API_CHATBOT_URL}";
}
#WebSocket reverse proxy configuration
location /hyperiot/ws {
resolver 127.0.0.1 [::1];
proxy_http_version 1.1;
proxy_set_header Upgrade ${DOLLAR}http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass "${API_URL}";
}
#HyperIoT API Configuration
location /hyperiot {
resolver 127.0.0.1 [::1];
proxy_http_version 1.1;
proxy_pass "${API_URL}";
}
#Angular APP Configuration
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files ${DOLLAR}uri ${DOLLAR}uri/ /index.html =404;
}
}