Skip to content

Configuration

Jonbeckas edited this page Sep 11, 2021 · 6 revisions

Frontend

  1. Open the assets/config-prod.json file
  2. Set backendUrl to your backend url e.g.
{
  "backendUrl": "https://backend.example.com"
}

Backend

  1. Open the config.json file
  2. Exmple Configuration
{
  "database": {
    "host": "localhost",
    "port": 3306,
    "username": "root",
    "password": "password",
    "database": "checkline"
  },
  "jwtSecret": "fuckthispassword", //Password for jwt token, could be any secret string
  "port": 8000, // backend port
  "runners": {
    "states": [ // all states a runner could have
      "Logged in",
      "Logged out",
      "Injured",
      "Injured logged out"
    ]
  },
  "admin": { // default user that is automaticly generated
    "username": "admin",
    "firstname": "firstname",
    "name": "name"
  },
  "adminGroup": {
    "name": "AdminGroup" // name for the default grgoup with the CENGIN_ADMIN permission
  }
}

Clone this wiki locally