Simple Node.js file uploader
clone this git repo install npm dependencies
$ npm install
make symlink to correct location
$ ln -s /home/user/node-file-uploader /opt/app/node-file-uploader
$ sudo firewall-cmd --permanent --add-port=3000/tcp
$ sudo firewall-cmd --reload
$ ln -s /opt/app/node-file-uploader/init.d/node-file-uploader /etc/rc.d/init.d/node-file-uploader
$ sudo chmod +x /etc/rc.d/init.d/node-file-uploader
$ sudo service node-file-uploader start
$ sudo chkconfig node-file-uploader on
$ ln -s /opt/app/node-file-uploader/node-file-uploader.conf /etc/nginx/conf.d/node-file-uploader.conf
$ sudo pkill -f nginx
$ sudo systmctl start nginx
Source: https://github.com/oktadeveloper/okta-node-express-15-minute-auth-example