clone3 commited on
Commit
54fcf1c
·
verified ·
1 Parent(s): 3a405aa

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +15 -0
nginx.conf CHANGED
@@ -32,4 +32,19 @@ server {
32
  proxy_read_timeout 86400;
33
  proxy_redirect off;
34
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  }
 
32
  proxy_read_timeout 86400;
33
  proxy_redirect off;
34
  }
35
+
36
+ location /web/ {
37
+ # Serve backend from port
38
+ rewrite /web/(.*) /$1 break;
39
+ proxy_pass http://localhost:7777;
40
+ proxy_http_version 1.1;
41
+ proxy_set_header Upgrade $http_upgrade;
42
+ proxy_set_header Connection 'upgrade';
43
+ proxy_set_header Host $host;
44
+ proxy_set_header X-Real-IP $remote_addr;
45
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
46
+ proxy_cache_bypass $http_upgrade;
47
+ proxy_read_timeout 86400;
48
+ proxy_redirect off;
49
+ }
50
  }