Update nginx.conf
Browse files- nginx.conf +15 -1
nginx.conf
CHANGED
@@ -19,7 +19,7 @@ server {
|
|
19 |
}
|
20 |
|
21 |
location /static/ {
|
22 |
-
# Serve backend from port
|
23 |
rewrite /static/(.*) /$1 break;
|
24 |
proxy_pass http://localhost:8000;
|
25 |
proxy_http_version 1.1;
|
@@ -32,4 +32,18 @@ server {
|
|
32 |
proxy_read_timeout 86400;
|
33 |
proxy_redirect off;
|
34 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
|
|
19 |
}
|
20 |
|
21 |
location /static/ {
|
22 |
+
# Serve backend from port 8000
|
23 |
rewrite /static/(.*) /$1 break;
|
24 |
proxy_pass http://localhost:8000;
|
25 |
proxy_http_version 1.1;
|
|
|
32 |
proxy_read_timeout 86400;
|
33 |
proxy_redirect off;
|
34 |
}
|
35 |
+
|
36 |
+
location /unity/ {
|
37 |
+
# Serve Unity Mirror Networking on port 7777
|
38 |
+
proxy_pass http://localhost:7777;
|
39 |
+
proxy_http_version 1.1;
|
40 |
+
proxy_set_header Upgrade $http_upgrade;
|
41 |
+
proxy_set_header Connection 'upgrade';
|
42 |
+
proxy_set_header Host $host;
|
43 |
+
proxy_set_header X-Real-IP $remote_addr;
|
44 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
45 |
+
proxy_cache_bypass $http_upgrade;
|
46 |
+
proxy_read_timeout 86400;
|
47 |
+
proxy_redirect off;
|
48 |
+
}
|
49 |
}
|