Linux conf

  1. Проброс nodejs port 3000 через nginx
Linux conf

Проброс nodejs port 3000 через nginx

server { listen 3001; server_name brusko.ru; access_log off; error_log off; root /var/www/react; index index.html index.htm ; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_pass http://localhost:3000; } }