Files changed (1) hide show
  1. 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://API_URL;
11
- proxy_set_header Host API_URL;
12
- proxy_set_header X-Real-IP $remote_addr;
13
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
14
- #proxy_set_header X-Forwarded-Proto $scheme;
15
- proxy_set_header X-Forwarded-Proto http;
16
- proxy_set_header X-Forwarded-Ssl off;
17
- proxy_set_header X-Url-Scheme http;
18
- proxy_buffering off;
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
+