orztv
commited on
Commit
·
b9bc096
1
Parent(s):
410a11e
update
Browse files- nginx.conf +7 -7
nginx.conf
CHANGED
@@ -23,15 +23,15 @@ http {
|
|
23 |
listen 7860;
|
24 |
|
25 |
# Configuration for Flask application
|
26 |
-
location /flask
|
27 |
proxy_pass http://127.0.0.1:6000/;
|
28 |
proxy_set_header Host $host;
|
29 |
proxy_set_header X-Real-IP $remote_addr;
|
30 |
}
|
31 |
|
32 |
-
# Redirect /flask to /flask
|
33 |
-
location = /flask {
|
34 |
-
return 301 /flask
|
35 |
}
|
36 |
|
37 |
# Configuration for Node.js application
|
@@ -41,9 +41,9 @@ http {
|
|
41 |
proxy_set_header X-Real-IP $remote_addr;
|
42 |
}
|
43 |
|
44 |
-
# Redirect /node to /node
|
45 |
-
location = /node {
|
46 |
-
return 301 /node
|
47 |
}
|
48 |
}
|
49 |
}
|
|
|
23 |
listen 7860;
|
24 |
|
25 |
# Configuration for Flask application
|
26 |
+
location /flask {
|
27 |
proxy_pass http://127.0.0.1:6000/;
|
28 |
proxy_set_header Host $host;
|
29 |
proxy_set_header X-Real-IP $remote_addr;
|
30 |
}
|
31 |
|
32 |
+
# Redirect /flask/ to /flask
|
33 |
+
location = /flask/ {
|
34 |
+
return 301 /flask;
|
35 |
}
|
36 |
|
37 |
# Configuration for Node.js application
|
|
|
41 |
proxy_set_header X-Real-IP $remote_addr;
|
42 |
}
|
43 |
|
44 |
+
# Redirect /node/ to /node
|
45 |
+
location = /node/ {
|
46 |
+
return 301 /node;
|
47 |
}
|
48 |
}
|
49 |
}
|