testupload / nginx /nginx.conf
Twan07's picture
Update nginx/nginx.conf
01012ff verified
raw
history blame
711 Bytes
# ===== REQUIRED =====
events {}
http {
# ===== OVERRIDE ALL TEMP PATHS =====
client_body_temp_path /home/node/app/nginx/tmp/body;
proxy_temp_path /home/node/app/nginx/tmp/proxy;
fastcgi_temp_path /home/node/app/nginx/tmp/fastcgi;
uwsgi_temp_path /home/node/app/nginx/tmp/uwsgi;
scgi_temp_path /home/node/app/nginx/tmp/scgi;
server {
listen 7860;
# API → Backend
location /api/ {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# Frontend
location / {
proxy_pass http://127.0.0.1:5173;
}
}
}