airsltd commited on
Commit
33b16a5
·
verified ·
1 Parent(s): 1b90aa4

Upload nginx.conf with huggingface_hub

Browse files
Files changed (1) hide show
  1. nginx.conf +4 -3
nginx.conf CHANGED
@@ -9,15 +9,16 @@ events {
9
  http {
10
  access_log /dev/stdout;
11
 
 
 
 
 
12
  server {
13
  listen 7860;
14
 
15
  location / {
16
  if ($http_upgrade = "websocket") {
17
  proxy_pass http://127.0.0.1:7861;
18
- proxy_http_version 1.1;
19
- proxy_set_header Upgrade $http_upgrade;
20
- proxy_set_header Connection "upgrade";
21
  break;
22
  }
23
  add_header Content-Type text/plain;
 
9
  http {
10
  access_log /dev/stdout;
11
 
12
+ proxy_http_version 1.1;
13
+ proxy_set_header Upgrade $http_upgrade;
14
+ proxy_set_header Connection "upgrade";
15
+
16
  server {
17
  listen 7860;
18
 
19
  location / {
20
  if ($http_upgrade = "websocket") {
21
  proxy_pass http://127.0.0.1:7861;
 
 
 
22
  break;
23
  }
24
  add_header Content-Type text/plain;