testupload / nginx /nginx.conf
Twan07's picture
Update nginx/nginx.conf
1c7bae6 verified
raw
history blame contribute delete
863 Bytes
# ===== REQUIRED =====
pid /home/node/app/nginx/nginx.pid;
events {}
http {
# ===== TEMP PATHS (NON-ROOT SAFE) =====
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;
# ===== LOG PATHS (NON-ROOT SAFE) =====
access_log /home/node/app/nginx/logs/access.log;
error_log /home/node/app/nginx/logs/error.log warn;
server {
listen 7860;
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;
}
location / {
proxy_pass http://127.0.0.1:5173;
}
}
}