Open iamantil opened 3 years ago
npm install pm2 -g pm2 --name sample start npm -- start pm2 ps vi /etc/nginx/nginx.conf ss -tnlp | grep node (node port) sudo service nginx restart sestatus getsebool -a | grep httpd setsebool -P httpd_can_network_connect on
nginx.conf(file)
location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_pass http://localhost:3000/; proxy_redirect off; }
Nginx
npm install pm2 -g pm2 --name sample start npm -- start pm2 ps vi /etc/nginx/nginx.conf ss -tnlp | grep node (node port) sudo service nginx restart sestatus getsebool -a | grep httpd setsebool -P httpd_can_network_connect on
nginx.conf(file)