Spaces:
Build error
Build error
Update nginx.conf
Browse files- nginx.conf +10 -0
nginx.conf
CHANGED
@@ -28,6 +28,16 @@ server {
|
|
28 |
proxy_redirect off;
|
29 |
}
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
location /ws/ {
|
32 |
proxy_pass http://localhost:8000/ws/;
|
33 |
proxy_http_version 1.1;
|
|
|
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;
|