bentebbutt commited on
Commit
cdfb128
·
verified ·
1 Parent(s): cc1c26b

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +9 -7
nginx.conf CHANGED
@@ -28,22 +28,24 @@ server {
28
  proxy_redirect off;
29
  }
30
 
31
- location /api/ {
32
- proxy_pass http://localhost:8000/api/;
 
 
33
  proxy_http_version 1.1;
34
  proxy_set_header Upgrade $http_upgrade;
35
  proxy_set_header Connection "upgrade";
36
  proxy_set_header Host $host;
37
- proxy_read_timeout 600s;
38
  }
39
- }
40
 
41
- location /ws/ {
42
- proxy_pass http://localhost:8000/ws/;
 
43
  proxy_http_version 1.1;
44
  proxy_set_header Upgrade $http_upgrade;
45
  proxy_set_header Connection "upgrade";
46
  proxy_set_header Host $host;
47
- proxy_read_timeout 600s; # Extended timeout for WebSocket connections
48
  }
49
  }
 
28
  proxy_redirect off;
29
  }
30
 
31
+ }
32
+
33
+ location /ws/ {
34
+ proxy_pass http://localhost:8000/ws/;
35
  proxy_http_version 1.1;
36
  proxy_set_header Upgrade $http_upgrade;
37
  proxy_set_header Connection "upgrade";
38
  proxy_set_header Host $host;
39
+ proxy_read_timeout 600s; # Extended timeout for WebSocket connections
40
  }
 
41
 
42
+
43
+ location /api/ {
44
+ proxy_pass http://localhost:8000/api/;
45
  proxy_http_version 1.1;
46
  proxy_set_header Upgrade $http_upgrade;
47
  proxy_set_header Connection "upgrade";
48
  proxy_set_header Host $host;
49
+ proxy_read_timeout 600s;
50
  }
51
  }