-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
32 lines (30 loc) · 779 Bytes
/
nginx.conf
File metadata and controls
32 lines (30 loc) · 779 Bytes
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 { }
http{
server {
# Port 80 is default port for non-encrypted messages
listen 80;
root /app;
location / {
resolver 127.0.0.11 valid=30s;
set $chatbot_ui chatbot_ui;
proxy_http_version 1.1;
# don't cache it
proxy_no_cache 1;
# even if cached, don't try to use it
proxy_cache_bypass 1;
proxy_pass http://$chatbot_ui:3000;
proxy_read_timeout 300;
}
location ~ ^/rasa(/?)(.*) {
resolver 127.0.0.11 valid=30s;
set $rasa_server rasa;
proxy_http_version 1.1;
# don't cache it
proxy_no_cache 1;
# even if cached, don't try to use it
proxy_cache_bypass 1;
proxy_pass http://$rasa_server:5005/$2;
proxy_read_timeout 300;
}
}
}