little node app for testing webhooks
Download the index.js
file and run:
$ node index.js
Server running at http://localhost:3000/
Install necessary software:
apt update && apt install -y nginx apache2-utils
Generate a password for your user:
htpasswd -b -c /etc/nginx/htpass user pass
Configure NGINX by adding the file default.conf and linked it to sites enabled:
vim /etc/nginx/sites-available/default
paste the content and create the link:
ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
then reload NGINX:
systemctl restart nginx