abubasith86 commited on
Commit
db7d6f9
·
verified ·
1 Parent(s): c51c5ea

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +8 -4
nginx.conf CHANGED
@@ -1,20 +1,24 @@
1
- worker_processes 1;
2
  events { worker_connections 1024; }
3
 
4
  http {
 
 
 
 
 
 
5
  server {
6
  listen 7860;
7
 
8
- # HTTP REST / socket start endpoints (FastAPI on port 8000)
9
  location /socket/ {
10
  proxy_pass http://127.0.0.1:8000;
11
  proxy_set_header Host $host;
12
  proxy_http_version 1.1;
13
  }
14
 
15
- # Socket server using TCP stream forwarding
16
  location /ws/ {
17
- proxy_pass http://127.0.0.1:8888; # adjust if using raw tcp
18
  proxy_http_version 1.1;
19
  proxy_set_header Upgrade $http_upgrade;
20
  proxy_set_header Connection "Upgrade";
 
1
+ worker_processes 1;
2
  events { worker_connections 1024; }
3
 
4
  http {
5
+ client_body_temp_path /tmp/client_body_temp;
6
+ proxy_temp_path /tmp/proxy_temp;
7
+ fastcgi_temp_path /tmp/fastcgi_temp;
8
+ uwsgi_temp_path /tmp/uwsgi_temp;
9
+ scgi_temp_path /tmp/scgi_temp;
10
+
11
  server {
12
  listen 7860;
13
 
 
14
  location /socket/ {
15
  proxy_pass http://127.0.0.1:8000;
16
  proxy_set_header Host $host;
17
  proxy_http_version 1.1;
18
  }
19
 
 
20
  location /ws/ {
21
+ proxy_pass http://127.0.0.1:8888;
22
  proxy_http_version 1.1;
23
  proxy_set_header Upgrade $http_upgrade;
24
  proxy_set_header Connection "Upgrade";