shoom013 commited on
Commit
80b6e58
·
verified ·
1 Parent(s): f381a2d

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +21 -13
nginx.conf CHANGED
@@ -28,21 +28,29 @@ http {
28
  location / {
29
  proxy_pass http://127.0.0.1:8000/stream.mp3;
30
  # Buffer settings for streaming might be needed
31
- proxy_buffering on;
 
 
 
 
 
 
 
 
32
  }
33
 
34
  # Proxy Jupyter Lab
35
- #location / {
36
- # proxy_pass http://127.0.0.1:8888;
37
- # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
38
- # proxy_set_header X-Real-IP $remote_addr;
39
- # proxy_set_header Host $http_host;
40
- # proxy_http_version 1.1;
41
- # proxy_redirect off;
42
- # proxy_buffering off;
43
- # proxy_set_header Upgrade $http_upgrade;
44
- # proxy_set_header Connection "upgrade";
45
- # proxy_read_timeout 86400;
46
- #}
47
  }
48
  }
 
28
  location / {
29
  proxy_pass http://127.0.0.1:8000/stream.mp3;
30
  # Buffer settings for streaming might be needed
31
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
32
+ proxy_set_header X-Real-IP $remote_addr;
33
+ proxy_set_header Host $http_host;
34
+ proxy_http_version 1.1;
35
+ proxy_redirect off;
36
+ proxy_buffering off;
37
+ proxy_set_header Upgrade $http_upgrade;
38
+ proxy_set_header Connection "upgrade";
39
+ proxy_read_timeout 86400;
40
  }
41
 
42
  # Proxy Jupyter Lab
43
+ location /dev {
44
+ proxy_pass http://127.0.0.1:8888;
45
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
46
+ proxy_set_header X-Real-IP $remote_addr;
47
+ proxy_set_header Host $http_host;
48
+ proxy_http_version 1.1;
49
+ proxy_redirect off;
50
+ proxy_buffering off;
51
+ proxy_set_header Upgrade $http_upgrade;
52
+ proxy_set_header Connection "upgrade";
53
+ proxy_read_timeout 86400;
54
+ }
55
  }
56
  }