eienmojiki commited on
Commit
a7b5019
·
verified ·
1 Parent(s): eb34dff

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +0 -6
nginx.conf CHANGED
@@ -18,16 +18,10 @@ server {
18
  }
19
 
20
  location /streamlit/ {
21
- # KHÔNG DÙNG DẤU / Ở CUỐI TRONG proxy_pass
22
- # Vì Streamlit đã được cấu hình baseUrlPath để tự xử lý đường dẫn con
23
  proxy_pass http://localhost:8501;
24
-
25
- # Cấu hình WebSockets
26
  proxy_http_version 1.1;
27
  proxy_set_header Upgrade $http_upgrade;
28
  proxy_set_header Connection 'upgrade';
29
-
30
- # Headers chuẩn
31
  proxy_set_header Host $host;
32
  proxy_set_header X-Real-IP $remote_addr;
33
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 
18
  }
19
 
20
  location /streamlit/ {
 
 
21
  proxy_pass http://localhost:8501;
 
 
22
  proxy_http_version 1.1;
23
  proxy_set_header Upgrade $http_upgrade;
24
  proxy_set_header Connection 'upgrade';
 
 
25
  proxy_set_header Host $host;
26
  proxy_set_header X-Real-IP $remote_addr;
27
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;