bde-liste/README.md

25 lines
1,008 B
Markdown
Raw Normal View History

2022-12-11 15:16:32 +00:00
# Website for Metz's BDE List
2022-12-11 14:49:41 +00:00
2022-12-11 15:16:54 +00:00
## Installation:
2022-12-11 15:08:28 +00:00
1. Requirements:
2022-12-11 15:53:20 +00:00
* Create a bde-list user in sudoers: `sudo useradd -m -s /bin/bash -G sudo bde-list` and connect to it.
2022-12-11 15:15:41 +00:00
* Install nvm: `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash`
2022-12-11 15:28:23 +00:00
* Install node: `nvm install 18.12.1 && nvm use 18.12.1`
2022-12-11 15:15:41 +00:00
* Install pm2: `npm install pm2 -g`
2022-12-11 18:35:11 +00:00
* Make pm2 launch on reboot: `pm2 startup`
2022-12-11 15:53:20 +00:00
* Install nginx: `sudo apt-get install nginx`
2022-12-11 16:01:37 +00:00
* Remove default virtual host: `sudo unlink /etc/nginx/sites-enabled/default`
2022-12-11 15:08:28 +00:00
2. Installation:
* Clone this repo
2022-12-11 15:15:23 +00:00
* Install dependencies: `npm i`
2022-12-11 16:02:30 +00:00
* move conf: `sudo mv reverse-proxy.conf /etc/nginx/sites-available/`
* Enable site: `sudo ln -s /etc/nginx/sites-available/reverse-proxy.conf /etc/nginx/sites-enabled/reverse-proxy.conf`
2022-12-11 16:05:43 +00:00
* restart nginx: `sudo systemctl restart nginx`
2022-12-11 18:26:57 +00:00
* Enter your LDAP bind user cred by running: `node ldap-conf.js`
2022-12-11 17:59:41 +00:00
* Run the server: `pm2 start index.js --name bde-list -i 1`
2022-12-11 18:35:11 +00:00
* Save current configureation: `pm2 save`