Clone04 commited on
Commit
8836ea3
1 Parent(s): 9d8f69a

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +12 -4
nginx.conf CHANGED
@@ -5,13 +5,14 @@ map $http_x_request_id $req_id {
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,9 +25,11 @@ server {
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,7 +41,12 @@ server {
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;
 
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
  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
  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;