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

Update nginx.conf

Browse files
Files changed (1) hide show
  1. 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;