Skip to content

unique-clan/unique-web

Repository files navigation

Unique Clan Website

Copyright (c) 2020 edg-l, Tezcan, timakro

Dependencies

Environment variables

  • Server: PORT (default 3000), BEHIND_PROXY node.js is behind reverse proxy? (default false)
  • MongoDB: DATABASE_USERNAME, DATABASE_PASSWORD, DATABASE_HOST, DATABASE_PORT, DATABASE_NAME (default "uniqueweb")
  • MySQL: MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE
  • Cookies: COOKIE_SECRET cookie signing key, COOKIE_SECURE only send cookies via HTTPS? (default false)
  • ReCAPTCHA: RECAPTCHA_SITE_KEY, RECAPTCHA_SECRET_KEY
  • Password storage: SALT_WORK_FACTOR (default 10)
  • Serverstatus: SERVERS_LOCATION location of servers.json file (default servers.json)
  • Admin dashboard password: ADMIN_DASHBOARD_PW the password (default 1234)
  • Maps: MAPS_LOCATION location of map directory with images (and maps)

How-to

  • git clone https://github.com/unique-clan/unique-web
  • cd unique-web
  • npm install
  • npm start Will listen on localhost:3000 by default

Production how-to

  • Clone repository to /home/uniqueweb
  • Copy run.sh.default to run.sh and set passwords.
  • Install systemd user unit and enable for user uniqueweb.
  • Don't forget to loginctl enable-linger uniqueweb

Javascript style

We follow StandardJS

Releases

No releases published

Packages

No packages published