Sbboss commited on
Commit
b7c2c79
·
1 Parent(s): 699677f

Fix Streamlit websocket proxy in nginx

Browse files
Files changed (1) hide show
  1. docker/nginx.conf.template +4 -0
docker/nginx.conf.template CHANGED
@@ -39,9 +39,13 @@ http {
39
 
40
  location / {
41
  proxy_pass http://127.0.0.1:8501;
 
 
 
42
  proxy_set_header Host $host;
43
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
44
  proxy_set_header X-Forwarded-Proto $scheme;
 
45
  }
46
  }
47
  }
 
39
 
40
  location / {
41
  proxy_pass http://127.0.0.1:8501;
42
+ proxy_http_version 1.1;
43
+ proxy_set_header Upgrade $http_upgrade;
44
+ proxy_set_header Connection $connection_upgrade;
45
  proxy_set_header Host $host;
46
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
47
  proxy_set_header X-Forwarded-Proto $scheme;
48
+ proxy_read_timeout 3600;
49
  }
50
  }
51
  }