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.
 
 
 
asyncnomi 05750ec31a bla 1 year ago
static bla 1 year ago
.gitignore gitignore update 1 year ago
LICENSE added front 1 year ago
README.md Update 'README.md' 1 year ago
index.js bla 1 year ago
ldap-conf.js edit ldap auth 1 year ago
package.json bla 1 year ago
reverse-proxy.conf bla 1 year ago
stats.js bla 1 year ago

README.md

Website for Metz's BDE List

Installation:

  1. Requirements:
  • Create a bde-list user in sudoers: sudo useradd -m -s /bin/bash -G sudo bde-list and 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
  • Make pm2 launch on reboot: pm2 startup
  • Install nginx: sudo apt-get install nginx
  • Remove default virtual host: sudo unlink /etc/nginx/sites-enabled/default
  1. 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
  • Enter your LDAP bind user cred by running: node ldap-conf.js
  • Run the server: pm2 start index.js --name bde-list -i 1
  • Save current configuration: pm2 save