Spaces:
Running
Running
update nginx.conf
#175
by
onlinework
- opened
- nginx.conf +12 -13
nginx.conf
CHANGED
@@ -1,23 +1,22 @@
|
|
1 |
server {
|
2 |
listen 7860 default_server;
|
3 |
listen [::]:7860 default_server;
|
4 |
-
|
5 |
root /usr/share/nginx/html;
|
6 |
index index.html index.htm;
|
7 |
|
8 |
server_name _;
|
|
|
9 |
location / {
|
10 |
-
proxy_pass http://
|
11 |
-
proxy_set_header
|
12 |
-
proxy_set_header
|
13 |
-
proxy_set_header
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
proxy_set_header
|
18 |
-
|
19 |
-
proxy_http_version 1.1;
|
20 |
-
proxy_set_header Upgrade $http_upgrade;
|
21 |
-
proxy_set_header Connection "upgrade";
|
22 |
}
|
23 |
}
|
|
|
|
1 |
server {
|
2 |
listen 7860 default_server;
|
3 |
listen [::]:7860 default_server;
|
4 |
+
|
5 |
root /usr/share/nginx/html;
|
6 |
index index.html index.htm;
|
7 |
|
8 |
server_name _;
|
9 |
+
|
10 |
location / {
|
11 |
+
proxy_pass http://127.0.0.1:7861; # Updated to connect to a local backend
|
12 |
+
proxy_set_header Host $host;
|
13 |
+
proxy_set_header X-Real-IP $remote_addr;
|
14 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
15 |
+
proxy_set_header X-Forwarded-Proto $scheme;
|
16 |
+
proxy_buffering off;
|
17 |
+
proxy_http_version 1.1;
|
18 |
+
proxy_set_header Upgrade $http_upgrade;
|
19 |
+
proxy_set_header Connection "upgrade";
|
|
|
|
|
|
|
20 |
}
|
21 |
}
|
22 |
+
|