Clone04 commited on
Commit
9d8f69a
·
verified ·
1 Parent(s): 8ad1399

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +5 -13
nginx.conf CHANGED
@@ -5,14 +5,13 @@ map $http_x_request_id $req_id {
5
  }
6
 
7
  server {
 
8
  listen 4444 default_server;
9
  listen [::]:4444 default_server;
10
 
11
  server_name _;
12
 
13
- # Gradio application on port 7860
14
  location / {
15
- # Serve GRADIO 7860
16
  proxy_pass http://localhost:7860;
17
  proxy_http_version 1.1;
18
  proxy_set_header Upgrade $http_upgrade;
@@ -25,11 +24,9 @@ server {
25
  proxy_redirect off;
26
  }
27
 
28
- # Static files backend on port 8000
29
- location /static/ {
30
- # Serve backend from port 8000
31
- rewrite /static/(.*) /$1 break;
32
- proxy_pass http://localhost:8000;
33
  proxy_http_version 1.1;
34
  proxy_set_header Upgrade $http_upgrade;
35
  proxy_set_header Connection 'upgrade';
@@ -41,12 +38,7 @@ server {
41
  proxy_redirect off;
42
  }
43
 
44
- # Unity Mirror Networking on port 7777
45
  location /unity/ {
46
- # Ensure no duplicate x-request-id header
47
- proxy_set_header x-request-id $req_id;
48
-
49
- # Serve Unity Mirror Networking on port 7777
50
  proxy_pass http://localhost:7777;
51
  proxy_http_version 1.1;
52
  proxy_set_header Upgrade $http_upgrade;
@@ -59,4 +51,4 @@ server {
59
  proxy_send_timeout 86400;
60
  proxy_redirect off;
61
  }
62
- }
 
5
  }
6
 
7
  server {
8
+ #listen 4444 http2;
9
  listen 4444 default_server;
10
  listen [::]:4444 default_server;
11
 
12
  server_name _;
13
 
 
14
  location / {
 
15
  proxy_pass http://localhost:7860;
16
  proxy_http_version 1.1;
17
  proxy_set_header Upgrade $http_upgrade;
 
24
  proxy_redirect off;
25
  }
26
 
27
+ location /page/ {
28
+ rewrite /page/(.*) /$1 break;
29
+ proxy_pass http://localhost:7778;
 
 
30
  proxy_http_version 1.1;
31
  proxy_set_header Upgrade $http_upgrade;
32
  proxy_set_header Connection 'upgrade';
 
38
  proxy_redirect off;
39
  }
40
 
 
41
  location /unity/ {
 
 
 
 
42
  proxy_pass http://localhost:7777;
43
  proxy_http_version 1.1;
44
  proxy_set_header Upgrade $http_upgrade;
 
51
  proxy_send_timeout 86400;
52
  proxy_redirect off;
53
  }
54
+ }