You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
3 years ago | |
|---|---|---|
| static | 3 years ago | |
| .gitignore | 3 years ago | |
| LICENSE | 3 years ago | |
| README.md | 3 years ago | |
| index.js | 3 years ago | |
| ldap-conf.js | 3 years ago | |
| package.json | 3 years ago | |
| reverse-proxy.conf | 3 years ago | |
README.md
Website for Metz's BDE List
Installation:
- Requirements:
- Create a bde-list user in sudoers:
sudo useradd -m -s /bin/bash -G sudo bde-listand connect to it. - Install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash - Install node:
nvm install 18.12.1 && nvm use 18.12.1 - Install pm2:
npm install pm2 -g - Install nginx:
sudo apt-get install nginx - Remove default virtual host:
sudo unlink /etc/nginx/sites-enabled/default
- Installation:
- Clone this repo
- Install dependencies:
npm i - 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 - restart nginx:
sudo systemctl restart nginx - edit the ldap-conf file with your LDAP bind user cred.
- Run the server:
pm2 start index.js --name bde-list -i 1