Spaces:
Build error
Build error
Update nginx.conf
Browse files- nginx.conf +9 -7
nginx.conf
CHANGED
@@ -28,22 +28,24 @@ server {
|
|
28 |
proxy_redirect off;
|
29 |
}
|
30 |
|
31 |
-
|
32 |
-
|
|
|
|
|
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 |
-
|
42 |
-
|
|
|
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;
|
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 |
}
|